From: Joe W. <joe...@us...> - 2002-10-14 18:43:33
|
Update of /cvsroot/mockobjects/nmock/test/NMock In directory usw-pr-cvs1:/tmp/cvs-serv6916/test/NMock Modified Files: MockTest.cs Log Message: Decoupled from NUnit. Use testing framework of choice. Index: MockTest.cs =================================================================== RCS file: /cvsroot/mockobjects/nmock/test/NMock/MockTest.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- MockTest.cs 6 Oct 2002 22:57:48 -0000 1.2 +++ MockTest.cs 14 Oct 2002 18:43:30 -0000 1.3 @@ -36,7 +36,7 @@ } [Test] - [ExpectedException(typeof(AssertionException))] + [ExpectedException(typeof(VerifyException))] public void NoCallToVoidMethod() { mock.Expect("myMethod"); @@ -44,7 +44,7 @@ } [Test] - [ExpectedException(typeof(AssertionException))] + [ExpectedException(typeof(VerifyException))] public void TooManyCallsToVoidMethod() { mock.Expect("myMethod"); @@ -73,7 +73,7 @@ } [Test] - [ExpectedException(typeof(AssertionException))] + [ExpectedException(typeof(VerifyException))] public void CallToMethodWithInvalidParams() { mock.Expect("myMethod", new IsEqual("hello"), new IsAnything()); @@ -101,7 +101,7 @@ } [Test] - [ExpectedException(typeof(AssertionException))] + [ExpectedException(typeof(VerifyException))] public void CallMultipleMethodsInWrongOrder() { mock.Expect("myMethod1"); @@ -134,7 +134,7 @@ } [Test] - [ExpectedException(typeof(AssertionException))] + [ExpectedException(typeof(VerifyException))] public void CallToNonVoidMethodWithWrongParams() { object something = new object(); @@ -176,7 +176,7 @@ } [Test] - [ExpectedException(typeof(AssertionException))] + [ExpectedException(typeof(VerifyException))] public void DefaultEqualsPredicatesFailure() { mock.Expect("myMethod", new object()); |