|
From: <nic...@us...> - 2003-06-27 21:31:50
|
Update of /cvsroot/nmock/nmock/test/NMock/Dynamic
In directory sc8-pr-cvs1:/tmp/cvs-serv27031/test/NMock/Dynamic
Modified Files:
ClassGeneratorTest.cs
Log Message:
New test for when the first argument of a method is a 64 bit value type.
Index: ClassGeneratorTest.cs
===================================================================
RCS file: /cvsroot/nmock/nmock/test/NMock/Dynamic/ClassGeneratorTest.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ClassGeneratorTest.cs 14 Feb 2003 20:56:32 -0000 1.6
--- ClassGeneratorTest.cs 27 Jun 2003 21:15:54 -0000 1.7
***************
*** 18,21 ****
--- 18,22 ----
void WithOtherArgs(int x, bool y, object o, IList list);
void WithParams(int i, params string[] extra);
+ void WithLongParam(long l);
object simpleReturn();
string stringReturn();
***************
*** 211,214 ****
--- 212,223 ----
mock.Expect("WithOtherArgs", new IsEqual(6), new IsEqual(true), new IsNull(), new IsEqual(l));
thingy.WithOtherArgs(6, true, null, l);
+ mock.Verify();
+ }
+
+ [Test]
+ public void CallMethodWithLongParam()
+ {
+ mock.Expect("WithLongParam", 5L);
+ thingy.WithLongParam(5L);
mock.Verify();
}
|