Beispiel #1
0
        public void Multiple_calls_without_caring_about_args()
        {
            SupportCase = SupportCaseProcessor.InitiateSupportCase("Make the corners rounded.");

            SupportCaseProcessor.Process(SupportCase);

            MessagingService.AssertWasCalled(m => m.Lock(Arg <bool> .Is.Anything), options => options.Repeat.Twice());
        }
Beispiel #2
0
        public void Multiple_calls_with_distinct_args_in_any_order()
        {
            SupportCase = SupportCaseProcessor.InitiateSupportCase("Make the corners rounded.");

            SupportCaseProcessor.Process(SupportCase);

            //They're actually called in the other order, m.Lock(true) coming first.
            MessagingService.AssertWasCalled(m => m.Lock(false));
            MessagingService.AssertWasCalled(m => m.Lock(true));
        }