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
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)); |