Mercurial > repos > IBBoard.Tests
changeset 49:99e4c1949c92 tip
* Update to v2.6 of NUnit and new syntax/API changes
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 28 Apr 2013 19:32:14 +0100 |
parents | 1e731dda7608 |
children | |
files | ArraysTests.cs Collections/CollectionsTest.cs EqualityCheckerTests.cs IBBoard.Tests.csproj IO/StreamUtilTests.cs Limits/AbstractCompositeLimitTest.cs Xml/XmlResourceResolverTests.cs |
diffstat | 7 files changed, 5 insertions(+), 11 deletions(-) [+] |
line diff
1.1 --- a/ArraysTests.cs Sat Sep 01 14:17:09 2012 +0100 1.2 +++ b/ArraysTests.cs Sun Apr 28 19:32:14 2013 +0100 1.3 @@ -3,7 +3,6 @@ 1.4 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU LGPL, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. 1.5 using System; 1.6 using NUnit.Framework; 1.7 -using NUnit.Framework.SyntaxHelpers; 1.8 namespace IBBoard 1.9 { 1.10 [TestFixture()] 1.11 @@ -38,15 +37,15 @@ 1.12 [Test()] 1.13 public void TestSubtractWithFullOverlapLeaveEmptyArray() 1.14 { 1.15 - Assert.That(Arrays.Subtract(THREE_ITEM_ARRAY, THREE_ITEM_ARRAY), Has.Length(0)); 1.16 - Assert.That(Arrays.Subtract(ONE_ITEM_ARRAY, ONE_ITEM_ARRAY), Has.Length(0)); 1.17 - Assert.That(Arrays.Subtract(EMPTY_ARRAY, EMPTY_ARRAY), Has.Length(0)); 1.18 + Assert.That(Arrays.Subtract(THREE_ITEM_ARRAY, THREE_ITEM_ARRAY), Has.Length.EqualTo(0)); 1.19 + Assert.That(Arrays.Subtract(ONE_ITEM_ARRAY, ONE_ITEM_ARRAY), Has.Length.EqualTo(0)); 1.20 + Assert.That(Arrays.Subtract(EMPTY_ARRAY, EMPTY_ARRAY), Has.Length.EqualTo(0)); 1.21 } 1.22 1.23 [Test()] 1.24 public void TestSubtractWithEmptyArraysDoesNotError() 1.25 { 1.26 - Assert.That(Arrays.Subtract(EMPTY_ARRAY, ONE_ITEM_ARRAY), Has.Length(0)); 1.27 + Assert.That(Arrays.Subtract(EMPTY_ARRAY, ONE_ITEM_ARRAY), Has.Length.EqualTo(0)); 1.28 Assert.That(Arrays.Subtract(ONE_ITEM_ARRAY, EMPTY_ARRAY), Is.EqualTo(ONE_ITEM_ARRAY)); 1.29 } 1.30
2.1 --- a/Collections/CollectionsTest.cs Sat Sep 01 14:17:09 2012 +0100 2.2 +++ b/Collections/CollectionsTest.cs Sun Apr 28 19:32:14 2013 +0100 2.3 @@ -4,7 +4,6 @@ 2.4 using System; 2.5 using NUnit.Framework; 2.6 using System.Collections.Generic; 2.7 -using NUnit.Framework.SyntaxHelpers; 2.8 2.9 namespace IBBoard.Collections 2.10 {
3.1 --- a/EqualityCheckerTests.cs Sat Sep 01 14:17:09 2012 +0100 3.2 +++ b/EqualityCheckerTests.cs Sun Apr 28 19:32:14 2013 +0100 3.3 @@ -3,7 +3,6 @@ 3.4 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU LGPL, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. 3.5 using System; 3.6 using NUnit.Framework; 3.7 -using NUnit.Framework.SyntaxHelpers; 3.8 namespace IBBoard 3.9 { 3.10 [TestFixture()]
4.1 --- a/IBBoard.Tests.csproj Sat Sep 01 14:17:09 2012 +0100 4.2 +++ b/IBBoard.Tests.csproj Sun Apr 28 19:32:14 2013 +0100 4.3 @@ -78,7 +78,7 @@ 4.4 <Reference Include="System" /> 4.5 <Reference Include="nunit.core, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" /> 4.6 <Reference Include="System.Xml" /> 4.7 - <Reference Include="nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77"> 4.8 + <Reference Include="nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77"> 4.9 <SpecificVersion>False</SpecificVersion> 4.10 </Reference> 4.11 </ItemGroup>
5.1 --- a/IO/StreamUtilTests.cs Sat Sep 01 14:17:09 2012 +0100 5.2 +++ b/IO/StreamUtilTests.cs Sun Apr 28 19:32:14 2013 +0100 5.3 @@ -4,7 +4,6 @@ 5.4 using System; 5.5 using NUnit.Framework; 5.6 using System.IO; 5.7 -using NUnit.Framework.SyntaxHelpers; 5.8 5.9 namespace IBBoard.IO 5.10 {
6.1 --- a/Limits/AbstractCompositeLimitTest.cs Sat Sep 01 14:17:09 2012 +0100 6.2 +++ b/Limits/AbstractCompositeLimitTest.cs Sun Apr 28 19:32:14 2013 +0100 6.3 @@ -3,7 +3,6 @@ 6.4 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU LGPL, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. 6.5 using System.Collections.Generic; 6.6 using NUnit.Framework; 6.7 -using NUnit.Framework.SyntaxHelpers; 6.8 6.9 namespace IBBoard.Limits 6.10 {
7.1 --- a/Xml/XmlResourceResolverTests.cs Sat Sep 01 14:17:09 2012 +0100 7.2 +++ b/Xml/XmlResourceResolverTests.cs Sun Apr 28 19:32:14 2013 +0100 7.3 @@ -5,7 +5,6 @@ 7.4 using NUnit.Framework; 7.5 using System.Reflection; 7.6 using System.IO; 7.7 -using NUnit.Framework.SyntaxHelpers; 7.8 7.9 namespace IBBoard.Xml 7.10 {