Created
January 27, 2016 15:08
-
-
Save plioi/f96a7bb659afdd171dc5 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
public static class Assertions | |
{ | |
public static void ShouldMatch<T>(this T actual, T expected) | |
=> Json(actual).ShouldEqual(Json(expected), "Expected two objects to match on all properties."); | |
private static string Json<T>(T actual) | |
=> JsonConvert.SerializeObject(actual, Formatting.Indented); | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment