|
From: Vaughn, C. <Va...@va...> - 2003-08-01 14:22:31
|
Hello all,
Here's a test that fails for named dynamic mocks.
[Test]
public void NamedDynamicMockMethodCall()
{
IMock mock = new DynamicMock(typeof(IBlah),
"XBlah");
Assertion.AssertEquals("XBlah", mock.Name);
mock.ExpectAndReturn("DoStuff", "world", "hello");
IBlah blah = (IBlah)mock.MockInstance;
Assertion.AssertEquals("world",
blah.DoStuff("hello"));
mock.Verify();
}
Clifton F. Vaughn
This message may have included proprietary or protected information. This
message and the information contained herein are not to be further
communicated without my express written consent.
|