Skip to content

Instantly share code, notes, and snippets.

@tuannguyenssu
Created July 8, 2019 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuannguyenssu/00f8879dacd647c6e254f38ecaa9f0b1 to your computer and use it in GitHub Desktop.
Save tuannguyenssu/00f8879dacd647c6e254f38ecaa9f0b1 to your computer and use it in GitHub Desktop.
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