diff ArraysTests.cs @ 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 8c1e331b47d5
children
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));
 		}