>> I don't understand your test. In particular, the first call to Stub what is supposed to do? It is doing nothing.
It gets called deep inside the _incidentManagementController.InitialiseBlanketMessage method. _processorClient is a dependency of the _incidentManagementController. The dependency is set int the [SetUp]. Any clearer? 2009/1/10 Simone Busoli <simone.bus...@gmail.com> > and don't understand what you're doing with the test arguments, where do > you use them? > > > On Sat, Jan 10, 2009 at 7:32 PM, Simone Busoli <simone.bus...@gmail.com>wrote: > >> I don't understand your test. In particular, the first call to Stub what >> is supposed to do? It is doing nothing. >> >> >> On Sat, Jan 10, 2009 at 4:37 PM, Paul Cowan <dag...@scotalt.net> wrote: >> >>> Hi, >>> >>> I am trying to run the following tests using the new paramaterised >>> features of NUnit 2.5 >>> >>> Here is my test: >>> >>> [ >>> TestCase(false, 0)] >>> [TestCase(true, 1)] >>> [TestCase(true, 2)] >>> public void Then_the_message_should_only_send_sms_messages(bool resend, >>> int resendAttempts) >>> { >>> _processorClient.Stub(x => x.Start(null)).IgnoreArguments(); >>> >>> _incidentManagementController.InitialiseBlanketMessage(_callTree.Uid, >>> MESSAGE_TEXT); >>> >>> _processorClient.AssertWasCalled(x => x.Start(null), opt => >>> opt.IgnoreArguments()); >>> } >>> >>> The test passes the first time but for the following 2 test cases, I get >>> ExpectedViolation exceptions: >>> >>> Expected #1, Actual #3. >>> Expected #1, Actual #2. >>> >>> Can anyone see what I am doing wrong? I've tried placing Repeat on the >>> stub but get the same error. >>> >>> Cheers >>> >>> Paul >>> >>> >>> >>> >>> >>> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" group. To post to this group, send email to rhino-tools-dev@googlegroups.com To unsubscribe from this group, send email to rhino-tools-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rhino-tools-dev?hl=en -~----------~----~----~----~------~----~------~--~---