|
From: <sm...@us...> - 2003-07-24 23:09:09
|
Update of /cvsroot/nmock/nmock/test/NMock/Constraints
In directory sc8-pr-cvs1:/tmp/cvs-serv24112/test/NMock/Constraints
Modified Files:
ConstraintsTest.cs
Log Message:
Index: ConstraintsTest.cs
===================================================================
RCS file: /cvsroot/nmock/nmock/test/NMock/Constraints/ConstraintsTest.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ConstraintsTest.cs 10 Feb 2003 13:26:17 -0000 1.5
--- ConstraintsTest.cs 24 Jul 2003 23:09:05 -0000 1.6
***************
*** 1,5 ****
using NUnit.Framework;
using System.Text.RegularExpressions;
!
namespace NMock.Constraints
{
--- 1,5 ----
using NUnit.Framework;
using System.Text.RegularExpressions;
! using System.Collections;
namespace NMock.Constraints
{
***************
*** 47,50 ****
--- 47,62 ----
Assertion.Assert(!c.Eval(i2));
Assertion.Assert(!c.Eval(2));
+ }
+
+ [Test]
+ public void IsEqualWhenArray()
+ {
+ object[] o1 = new object[] { 1, 2, 3 };
+ object[] o2 = new object[] { 1, 2, 4 };
+
+ c = new IsEqual(new object[] { 1, 2, 3 });
+ Assertion.Assert("should be equal", c.Eval(o1));
+ Assertion.Assert("shouldn't be equal", !c.Eval(o2));
+ Assertion.Assert("it ain't null", !c.Eval(null));
}
|