Guys, thank you for responses,
Here is the test (a separate simple test, has nothing to do with my
real code):
-------------
Imports MbUnit.Framework
Imports Rhino.Mocks
<TestFixture()> _
Public Class AAA_test
Private TestMock As ITestMock
Private TestClass As CTestClass
<SetUp()> _
Public Sub Setup()
TestMock = MockRepository.GenerateStub(Of ITestMock)()
TestClass = New CTestClass
End Sub
<Test()> _
Public Sub Test1()
TestClass.test(TestMock)
TestMock.AssertWasCalled(Function(x) x.TestFunc, Function
(options) options.IgnoreArguments.Repeat.Once)
End Sub
End Class
Public Class CTestClass
Public Sub test(ByVal TestMock As ITestMock)
TestMock.TestFunc()
TestMock.TestFunc()
End Sub
End Class
Public Interface ITestMock
Function TestFunc() As Object
End Interface
----------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Rhino.Mocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rhinomocks?hl=en
-~----------~----~----~----~------~----~------~--~---