Skip to content

Instantly share code, notes, and snippets.

@heytherewill
Created February 10, 2018 20:39
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 heytherewill/276051c2e07a13cd18ed91c2a3329baf to your computer and use it in GitHub Desktop.
Save heytherewill/276051c2e07a13cd18ed91c2a3329baf to your computer and use it in GitHub Desktop.
private static class MathHelpers
{
public static bool IsEven(int number)
=> number % 2 == 0;
}
private class Tests
{
[Fact]
public void TheEvenMethodReturnsTrueIfTheNumberIsEven()
{
MathHelpers.IsEven(2).Should().BeTrue();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment