Created
January 29, 2019 04:21
-
-
Save dariusz-wozniak/e2d45a13d75c4193eae59b805b3c4201 to your computer and use it in GitHub Desktop.
Assert.Multiple
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Assert.That(2 + 2, Is.EqualTo(4)); | |
Assert.That(2 + 2, Is.EqualTo(5)); | |
Assert.That(2 + 2, Is.EqualTo(6)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Assert.Multiple(() => | |
{ | |
Assert.That(2 + 2, Is.EqualTo(4)); | |
Assert.That(2 + 2, Is.EqualTo(5)); | |
Assert.That(2 + 2, Is.EqualTo(6)); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
One or more failures in Multiple Assert block: | |
1) Expected: 5 | |
But was: 4 | |
2) Expected: 6 | |
But was: 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment