Skip to content

Instantly share code, notes, and snippets.

@plioi
Created March 4, 2014 02:01
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 plioi/9338868 to your computer and use it in GitHub Desktop.
Save plioi/9338868 to your computer and use it in GitHub Desktop.
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