diff options
author | marcinzelent <zelent.marcin@protonmail.com> | 2017-11-23 10:16:47 +0100 |
---|---|---|
committer | marcinzelent <zelent.marcin@protonmail.com> | 2017-11-23 10:16:47 +0100 |
commit | 956d0c668bf20cb461c2c48ce388087bc6618886 (patch) | |
tree | f3eea2ad9ecf1dae73e1a20e3bd16cfde0e1ce45 /AirPollutionWebApi.Tests/Controllers | |
parent | 462aed0ddd5dd5cca7fb51175cc0829650e4916c (diff) |
Changed configs.
Diffstat (limited to 'AirPollutionWebApi.Tests/Controllers')
-rw-r--r-- | AirPollutionWebApi.Tests/Controllers/HomeControllerTest.cs | 35 |
1 files changed, 0 insertions, 35 deletions
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"]); - } - } -} |