Skip to content

Commit 0392c1d

Browse files
authored
Merge pull request #9794 from cw-sexton/patch-1
Correct typo: add missing "n" in "isn't"
2 parents e88cab2 + b37fb20 commit 0392c1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/test/walkthrough-creating-and-running-unit-tests-for-managed-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ public void Debit_WhenAmountIsMoreThanBalance_ShouldThrowArgumentOutOfRange()
390390

391391
### Retest, rewrite, and reanalyze
392392

393-
Currently, the test method doesn't handle all the cases that it should. If the method under test, the `Debit` method, failed to throw an <xref:System.ArgumentOutOfRangeException> when the `debitAmount` was larger than the balance (or less than zero), the test method would pass. This scenario is't good because you want the test method to fail if no exception is thrown.
393+
Currently, the test method doesn't handle all the cases that it should. If the method under test, the `Debit` method, failed to throw an <xref:System.ArgumentOutOfRangeException> when the `debitAmount` was larger than the balance (or less than zero), the test method would pass. This scenario isn't good because you want the test method to fail if no exception is thrown.
394394

395395
This outcome is a bug in the test method. To resolve the issue, add an <xref:Microsoft.VisualStudio.TestTools.UnitTesting.Assert.Fail%2A?displayProperty=nameWithType> assert at the end of the test method to handle the case where no exception is thrown.
396396

0 commit comments

Comments
 (0)