private void ExpectMessageFromQuery(Action query, string message)
        {
            var actualMessage = Assert.Throws <CallSequenceNotFoundException>(() => Received.InOrder(query)).Message;

            Assert.That(TrimAndFixLineEndings(actualMessage), Does.StartWith(TrimAndFixLineEndings(message)));
        }
 public void Pass_when_checking_a_subset_of_the_sequence_with_one_substitute()
 {
     Received.This(() => _engine.Start())
     .Then(() => _engine.Rev())
     .Then(() => _engine.Stop());
 }
Ejemplo n.º 3
0
 public void Pass_when_checking_a_single_call_that_was_in_the_sequence()
 {
     _foo.Start();
     Received.InOrder(() => _foo.Start());
 }
 public void Pass_when_checking_a_single_call_that_was_in_the_sequence()
 {
     _engine.Start();
     Received.This(() => _engine.Start());
 }