From 6c12530290a0404a8e47d3f63c21a10a99cb831a Mon Sep 17 00:00:00 2001 From: Mario Di Vece Date: Tue, 12 Apr 2016 12:20:16 -0500 Subject: [PATCH] removing unnecessary file. --- .../RegexRoutesTest.cs | 69 ------------------- 1 file changed, 69 deletions(-) delete mode 100644 Unosquare.Labs.EmbedIO.Tests/RegexRoutesTest.cs diff --git a/Unosquare.Labs.EmbedIO.Tests/RegexRoutesTest.cs b/Unosquare.Labs.EmbedIO.Tests/RegexRoutesTest.cs deleted file mode 100644 index aafaacdf8..000000000 --- a/Unosquare.Labs.EmbedIO.Tests/RegexRoutesTest.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; -using System.Linq; -using System.Threading; -using NUnit.Framework; -using Unosquare.Labs.EmbedIO.Modules; -using Unosquare.Labs.EmbedIO.Tests.Properties; -using Unosquare.Labs.EmbedIO.Tests.TestObjects; - -namespace Unosquare.Labs.EmbedIO.Tests -{ - [TestFixture] - public class RegExRoutesTest - { - protected WebServer WebServer; - protected TestConsoleLog Logger = new TestConsoleLog(); - - [SetUp] - public void Init() - { - WebServer = - new WebServer(Resources.ServerAddress, Logger, RoutingStrategy.RegEx) - .WithWebApiController(); - WebServer.RunAsync(); - } - - [Test] - public void TestWebApi() - { - Assert.IsNotNull(WebServer.Module(), "WebServer has WebApiModule"); - - Assert.AreEqual(WebServer.Module().ControllersCount, 1, "WebApiModule has one controller"); - } - - [Test] - public void GetJsonDataWithRegexId() - { - TestHelper.ValidatePerson(Resources.ServerAddress + TestRegexController.RelativePath + "regex/1"); - } - - [Test] - public void GetJsonDatAsyncaWithRegexId() - { - TestHelper.ValidatePerson(Resources.ServerAddress + TestRegexController.RelativePath + "regexasync/1"); - } - - [Test] - public void GetJsonDataWithRegexDate() - { - var person = PeopleRepository.Database.First(); - TestHelper.ValidatePerson(Resources.ServerAddress + TestRegexController.RelativePath + "regexdate/" + - person.DoB.ToString("yyyy-MM-dd")); - } - - [Test] - public void GetJsonDataWithRegexWithTwoParams() - { - var person = PeopleRepository.Database.First(); - TestHelper.ValidatePerson(Resources.ServerAddress + TestRegexController.RelativePath + "regextwo/" + - person.MainSkill + "/" + person.Age); - } - - [TearDown] - public void Kill() - { - Thread.Sleep(TimeSpan.FromSeconds(1)); - WebServer.Dispose(); - } - } -} \ No newline at end of file