public void Unexpected_call_was_received()
        {
            _foo.Bar();

            ShouldThrow(() => _foo.DidNotReceive().Bar());
            ShouldThrow(() => _foo.Received(0).Bar());
        }
        public void MockShouldReturnTheStringListAfterCheckingCallHistory()
        {
            IFoo foo = Substitute.For <IFoo>();

            foo.GetTheStrings().Returns(new[] { "a", "b" });

            foo.DidNotReceive().GetTheStrings();
            var strings = foo.GetTheStrings();

            Assert.That(strings, Is.EquivalentTo(new[] { "a", "b" }));
        }