[Prev] Thread [Next]  |  [Prev] Date [Next]

[RhinoMocks] Re: "Repeat" does not work with AAA syntax in 3.5 and 3.6? Tarpan Fri Oct 23 09:00:10 2009

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()
        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)
    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