Created
March 4, 2014 02:01
-
-
Save plioi/9338868 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
namespace Hypothetical.Assertion.Library | |
{ | |
public static class Assert | |
{ | |
public static void AreEqual(int expected, int actual) | |
{ | |
if (expected != actual) | |
throw new AssertionException(String.Format("Expected {0} but was {1}.", expected, actual)); | |
} | |
} | |
public class AssertionException : Exception | |
{ | |
public AssertionException(string message) | |
: base(message) | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment