Created
February 10, 2018 20:39
-
-
Save heytherewill/276051c2e07a13cd18ed91c2a3329baf to your computer and use it in GitHub Desktop.
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
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