示例#1
0
        public void Fail_throws_the_given_exception()
        {
            var sut = new QueueMessage(null, 0);

            sut.Invoking(s => s.Fail(new Exception("something went wrong")))
            .Should().Throw <Exception>()
            .WithMessage("something went wrong");
        }