Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replacing Microsoft tests with Nunit.

  • Loading branch information...
commit 1dddf7b86acf3dd0eebc5609d06914078f739eba 1 parent fa242f7
Magnus Mårtensson authored
View
21 TeamCityDemoWebApplication.Tests/App.config
@@ -1,14 +1,17 @@
-<?xml version="1.0" encoding="utf-8" ?>
+<?xml version="1.0" encoding="utf-8"?>
<!--
Note: Add entries to the App.config file for configuration settings
that apply only to the Test project.
-->
<configuration>
- <appSettings>
-
- </appSettings>
-
- <connectionStrings>
-
- </connectionStrings>
-</configuration>
+ <appSettings></appSettings>
+ <connectionStrings></connectionStrings>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+</configuration>
View
17 TeamCityDemoWebApplication.Tests/Controllers/HomeControllerTest.cs
@@ -1,18 +1,13 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Web.Mvc;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TeamCityDemoWebApplication;
+using System.Web.Mvc;
+using NUnit.Framework;
using TeamCityDemoWebApplication.Controllers;
namespace TeamCityDemoWebApplication.Tests.Controllers
{
- [TestClass]
+ [TestFixture]
public class HomeControllerTest
{
- [TestMethod]
+ [Test]
public void Index()
{
// Arrange
@@ -25,7 +20,7 @@ public void Index()
Assert.AreEqual("Modify this template to jump-start your ASP.NET MVC application.", result.ViewBag.Message);
}
- [TestMethod]
+ [Test]
public void About()
{
// Arrange
@@ -38,7 +33,7 @@ public void About()
Assert.IsNotNull(result);
}
- [TestMethod]
+ [Test]
public void Contact()
{
// Arrange
View
4 TeamCityDemoWebApplication.Tests/TeamCityDemoWebApplication.Tests.csproj
@@ -34,7 +34,9 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
- <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
+ <Reference Include="nunit.framework">
+ <HintPath>..\packages\NUnit.2.6.2\lib\nunit.framework.dll</HintPath>
+ </Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Configuration" />
View
1  TeamCityDemoWebApplication.Tests/packages.config
@@ -9,4 +9,5 @@
<package id="Microsoft.Net.Http" version="2.0.20710.0" targetFramework="net45" />
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
<package id="Newtonsoft.Json" version="4.5.6" targetFramework="net45" />
+ <package id="NUnit" version="2.6.2" targetFramework="net45" />
</packages>
View
BIN  packages/NUnit.2.6.2/NUnit.2.6.2.nupkg
Binary file not shown
View
27 packages/NUnit.2.6.2/NUnit.2.6.2.nuspec
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
+ <metadata>
+ <id>NUnit</id>
+ <version>2.6.2</version>
+ <title>NUnit</title>
+ <authors>Charlie Poole</authors>
+ <owners>Charlie Poole</owners>
+ <licenseUrl>http://nunit.org/nuget/license.html</licenseUrl>
+ <projectUrl>http://nunit.org/</projectUrl>
+ <iconUrl>http://nunit.org/nuget/nunit_32x32.png</iconUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <description>NUnit features a fluent assert syntax, parameterized, generic and theory tests and is user-extensible. A number of runners, both from the NUnit project and by third parties, are able to execute NUnit tests.
+
+Version 2.6 is the seventh major release of this well-known and well-tested programming tool.
+
+This package includes only the framework assembly. You will need to install the NUnit.Runners package unless you are using a third-party runner.</description>
+ <summary>NUnit is a unit-testing framework for all .Net languages with a strong TDD focus.</summary>
+ <releaseNotes>Version 2.6 is the seventh major release of NUnit.
+
+Unlike earlier versions, this package includes only the framework assembly. You will need to install the NUnit.Runners package unless you are using a third-party runner.
+
+The nunit.mocks assembly is now provided by the NUnit.Mocks package. The pnunit.framework assembly is provided by the pNUnit package.</releaseNotes>
+ <language>en-US</language>
+ <tags>test testing tdd framework fluent assert theory plugin addin</tags>
+ </metadata>
+</package>
View
BIN  packages/NUnit.2.6.2/lib/nunit.framework.dll
Binary file not shown
View
10,899 packages/NUnit.2.6.2/lib/nunit.framework.xml
10,899 additions, 0 deletions not shown
View
15 packages/NUnit.2.6.2/license.txt
@@ -0,0 +1,15 @@
+Copyright � 2002-2012 Charlie Poole
+Copyright � 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov
+Copyright � 2000-2002 Philip A. Craig
+
+This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+
+1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment (see the following) in the product documentation is required.
+
+Portions Copyright � 2002-2012 Charlie Poole or Copyright � 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or Copyright � 2000-2002 Philip A. Craig
+
+2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+
+3. This notice may not be removed or altered from any source distribution.
Please sign in to comment.
Something went wrong with that request. Please try again.