<commit_before>﻿using System;
using FluentAssert;
using Xunit;

namespace S3.TestServer.Test
{
    public class ServerTest
    {
        [Fact]
        public void Create_Httptestserver_WithNull_Parameter_Return_ArgumentNullException()
        {
            Action HttpServerAction = () => new HttpTestServer(null);

            AssertExtensions.ShouldThrow<ArgumentNullException>(HttpServerAction);
        }

        [Fact]
        public void Create_Httptestserver_Return_Instance()
        {
            var httpServer = new HttpTestServer();

            httpServer.ShouldNotBeNull();
            httpServer.ShouldBeOfType<HttpTestServer>();
        }
    }
}<commit_msg>Added some use cases<commit_after>﻿using System;
using FluentAssert;
using Xunit;

namespace S3.TestServer.Test
{
    public class ServerTest
    {
        [Fact]
        public void HttpTestServer_Create_WithNull_Parameter_Return_ArgumentNullException()
        {
            Action HttpServerAction = () => new HttpTestServer(null);

            AssertExtensions.ShouldThrow<ArgumentNullException>(HttpServerAction);
        }

        [Fact]
        public void HttpTestServer_Create_With_Default_Values_Return_Instance()
        {
            var httpServer = new HttpTestServer();

            httpServer.ShouldNotBeNull();
            httpServer.ShouldBeOfType<HttpTestServer>();
        }

        [Fact]
        public void HttpTestServer_Create_Instance_Return_LocalHost()
        {
            var httpServer = new HttpTestServer();

            httpServer.HostUrl.Host.ShouldBeEqualTo("localhost");
        }
    }
}
{'fraction_non_alphanumeric': 0.07735495945102933, 'fraction_numerical': 0.0012476606363069245, 'mean_word_length': 2.5723830734966593, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6981090', 'n_tokens_mistral': 423, 'n_tokens_neox': 414, 'n_words': 72}