Mercurial > repos > IBBoard.Tests
changeset 49:99e4c1949c92 default 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 wrap: on
line diff
--- a/ArraysTests.cs Sat Sep 01 14:17:09 2012 +0100 +++ b/ArraysTests.cs Sun Apr 28 19:32:14 2013 +0100 @@ -3,7 +3,6 @@ // 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. using System; using NUnit.Framework; -using NUnit.Framework.SyntaxHelpers; namespace IBBoard { [TestFixture()] @@ -38,15 +37,15 @@ [Test()] public void TestSubtractWithFullOverlapLeaveEmptyArray() { - Assert.That(Arrays.Subtract(THREE_ITEM_ARRAY, THREE_ITEM_ARRAY), Has.Length(0)); - Assert.That(Arrays.Subtract(ONE_ITEM_ARRAY, ONE_ITEM_ARRAY), Has.Length(0)); - Assert.That(Arrays.Subtract(EMPTY_ARRAY, EMPTY_ARRAY), Has.Length(0)); + Assert.That(Arrays.Subtract(THREE_ITEM_ARRAY, THREE_ITEM_ARRAY), Has.Length.EqualTo(0)); + Assert.That(Arrays.Subtract(ONE_ITEM_ARRAY, ONE_ITEM_ARRAY), Has.Length.EqualTo(0)); + Assert.That(Arrays.Subtract(EMPTY_ARRAY, EMPTY_ARRAY), Has.Length.EqualTo(0)); } [Test()] public void TestSubtractWithEmptyArraysDoesNotError() { - Assert.That(Arrays.Subtract(EMPTY_ARRAY, ONE_ITEM_ARRAY), Has.Length(0)); + Assert.That(Arrays.Subtract(EMPTY_ARRAY, ONE_ITEM_ARRAY), Has.Length.EqualTo(0)); Assert.That(Arrays.Subtract(ONE_ITEM_ARRAY, EMPTY_ARRAY), Is.EqualTo(ONE_ITEM_ARRAY)); }
--- a/Collections/CollectionsTest.cs Sat Sep 01 14:17:09 2012 +0100 +++ b/Collections/CollectionsTest.cs Sun Apr 28 19:32:14 2013 +0100 @@ -4,7 +4,6 @@ using System; using NUnit.Framework; using System.Collections.Generic; -using NUnit.Framework.SyntaxHelpers; namespace IBBoard.Collections {
--- a/EqualityCheckerTests.cs Sat Sep 01 14:17:09 2012 +0100 +++ b/EqualityCheckerTests.cs Sun Apr 28 19:32:14 2013 +0100 @@ -3,7 +3,6 @@ // 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. using System; using NUnit.Framework; -using NUnit.Framework.SyntaxHelpers; namespace IBBoard { [TestFixture()]
--- a/IBBoard.Tests.csproj Sat Sep 01 14:17:09 2012 +0100 +++ b/IBBoard.Tests.csproj Sun Apr 28 19:32:14 2013 +0100 @@ -78,7 +78,7 @@ <Reference Include="System" /> <Reference Include="nunit.core, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" /> <Reference Include="System.Xml" /> - <Reference Include="nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77"> + <Reference Include="nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77"> <SpecificVersion>False</SpecificVersion> </Reference> </ItemGroup>
--- a/IO/StreamUtilTests.cs Sat Sep 01 14:17:09 2012 +0100 +++ b/IO/StreamUtilTests.cs Sun Apr 28 19:32:14 2013 +0100 @@ -4,7 +4,6 @@ using System; using NUnit.Framework; using System.IO; -using NUnit.Framework.SyntaxHelpers; namespace IBBoard.IO {
--- a/Limits/AbstractCompositeLimitTest.cs Sat Sep 01 14:17:09 2012 +0100 +++ b/Limits/AbstractCompositeLimitTest.cs Sun Apr 28 19:32:14 2013 +0100 @@ -3,7 +3,6 @@ // 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. using System.Collections.Generic; using NUnit.Framework; -using NUnit.Framework.SyntaxHelpers; namespace IBBoard.Limits {