From 956d0c668bf20cb461c2c48ce388087bc6618886 Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Thu, 23 Nov 2017 10:16:47 +0100 Subject: Changed configs. --- .../AirPollutionWebApi.Tests.csproj | 91 ---------------------- .../Controllers/HomeControllerTest.cs | 35 --------- AirPollutionWebApi.Tests/packages.config | 13 ---- 3 files changed, 139 deletions(-) delete mode 100644 AirPollutionWebApi.Tests/AirPollutionWebApi.Tests.csproj delete mode 100644 AirPollutionWebApi.Tests/Controllers/HomeControllerTest.cs delete mode 100644 AirPollutionWebApi.Tests/packages.config (limited to 'AirPollutionWebApi.Tests') diff --git a/AirPollutionWebApi.Tests/AirPollutionWebApi.Tests.csproj b/AirPollutionWebApi.Tests/AirPollutionWebApi.Tests.csproj deleted file mode 100644 index a3f8082..0000000 --- a/AirPollutionWebApi.Tests/AirPollutionWebApi.Tests.csproj +++ /dev/null @@ -1,91 +0,0 @@ - - - - Debug - AnyCPU - {803677F8-DC3E-47DA-8E66-BE10F4F47E3A} - Library - AirPollutionWebApi.Tests - AirPollutionWebApi.Tests - v4.5 - - - true - full - false - bin\Debug - DEBUG; - prompt - 4 - - - true - bin\Release - prompt - 4 - - - - - - - - - - - - - - - - ..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll - - - ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll - - - ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll - - - ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll - - - ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll - - - ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll - - - ..\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll - - - ..\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll - - - - ..\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll - - - ..\packages\Microsoft.AspNet.WebApi.WebHost.5.2.3\lib\net45\System.Web.Http.WebHost.dll - - - ..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\NUnit.3.9.0\lib\net45\nunit.framework.dll - - - - - {22C32F4C-0DEB-40EA-9D56-48942CBB2A07} - AirPollutionWebApi - - - - - - - - - - \ No newline at end of file diff --git a/AirPollutionWebApi.Tests/Controllers/HomeControllerTest.cs b/AirPollutionWebApi.Tests/Controllers/HomeControllerTest.cs deleted file mode 100644 index fdae606..0000000 --- a/AirPollutionWebApi.Tests/Controllers/HomeControllerTest.cs +++ /dev/null @@ -1,35 +0,0 @@ -using NUnit.Framework; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Web.Mvc; -using AirPollutionWebApi; -using AirPollutionWebApi.Controllers; - -namespace AirPollutionWebApi.Tests.Controllers -{ - [TestFixture] - public class HomeControllerTest - { - [Test] - public void Index() - { - // Arrange - var controller = new HomeController(); - - // Act - var result = (ViewResult)controller.Index(); - - var mvcName = typeof(Controller).Assembly.GetName(); - var isMono = Type.GetType("Mono.Runtime") != null; - - var expectedVersion = mvcName.Version.Major + "." + mvcName.Version.Minor; - var expectedRuntime = isMono ? "Mono" : ".NET"; - - // Assert - Assert.AreEqual(expectedVersion, result.ViewData["Version"]); - Assert.AreEqual(expectedRuntime, result.ViewData["Runtime"]); - } - } -} diff --git a/AirPollutionWebApi.Tests/packages.config b/AirPollutionWebApi.Tests/packages.config deleted file mode 100644 index 89948e8..0000000 --- a/AirPollutionWebApi.Tests/packages.config +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file -- cgit v1.2.3