public void ShouldThrowOnDecreasingToLessThanOne() { for (int i = 1; i < 10; ++i) { CartItem.Invoking(item => item.DecreaseAmountOn(1)) .Should().Throw <InvalidOperationException>() .Where(e => e.Message.Contains("less than 1")); } }