Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class MathUtilitiesTest
{
[Fact]
public void PassingTest()
{
int a = 2;
int b = 2;
int expectedSum = 4;
int actualSum = MathUtilities.Add(a, b);
Assert.Equal(expectedSum, actualSum);
}
[Fact]
public void FailingTest()
{
int a = 2;
int b = 2;
int expectedSum = 5;
int actualSum = MathUtilities.Add(a, b);
Assert.Equal(expectedSum, actualSum);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment