Hi,

Does anybody know, is there any fix or workaround for "Repeat.Times
(x)" not working with AAA syntax in 3.5?


Code (sorry for VB code - employer requirement):
---------------
    <Test()> _
    Public Sub DataProviderLoader_Test1()
        DPRepository.Expect(Function(DPR) Check_Add
(DPR)).IgnoreArguments.Repeat.Once()
        DataProviderLoader.CreateDataProviders(DataDictionary,
DPRepository, SqlRunner)
        DPRepository.AssertWasCalled(Function(DPR) Check_Add(DPR),
Function(options) options.IgnoreArguments.Repeat.Once)
    End Sub
---------------

1st Line  - DPRepository.Expect() - set expectation to be called just
once
3rd Line  - DPRepository.AssertWasCalled() - verifies that the sub was
called just once

The sub called twice (guaranteed) and test completes just fine!


Thanks for responses
Tarpan

PS. I can not figure out how to use "Repeat" in 3.6. Can anybody show
me an example?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to