Last active
April 11, 2021 20:05
-
-
Save StacyGay/b923440caf7b3d15fdb728f1230f9d1b to your computer and use it in GitHub Desktop.
Trinity of test - XUnit
This file contains 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
[Theory] | |
[InlineData(2)] | |
[InlineData(0)] | |
[InlineData(-1)] | |
public void Should_Correctly_Detect_Negative(int value) | |
{ | |
var service = new NegativeService(); | |
if(value < 0) | |
Assert.True(service.IsNegative(value)); | |
else | |
Assert.False(service.IsNegative(value)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment