Skip to content

Instantly share code, notes, and snippets.

View detroitpro's full-sized avatar
☠️

Eric Polerecky detroitpro

☠️
View GitHub Profile
public static class AssertionExtensions
{
public static void should_be_equal_to<T>(this T actual, T expected)
{
Assert.That(actual, Is.EqualTo(expected));
}
public static void should_be_equal_to(this double actual, double expected, int precision)
{
Assert.That(Math.Round(actual, precision), Is.EqualTo(expected));