diff --git a/AttemptationUnitTests/AttempterServiceActionTests.cs b/AttemptationUnitTests/AttempterServiceActionTests.cs index cc6033a..49bbe81 100644 --- a/AttemptationUnitTests/AttempterServiceActionTests.cs +++ b/AttemptationUnitTests/AttempterServiceActionTests.cs @@ -21,5 +21,15 @@ public void TryReturnsFalseOnFailedAction() Assert.IsFalse(succeeded); } + + [TestMethod] + public void TryReturnsTrueOnSucceededAction() + { + var attempter = Attempter.Create(new MockService()); + + var succeeded = attempter.Try(s => s.MockAction(throwException: false)); + + Assert.IsTrue(succeeded); + } } }