-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugging in Assertion extensibility #117
Conversation
@AbhitejJohn, |
/// <remarks> | ||
/// Users can use this to plug-in custom assertions through C# extension methods. | ||
/// For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" | ||
/// Users could then use a synthax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spell check "syntax"
/// <remarks> | ||
/// Users can use this to plug-in custom assertions through C# extension methods. | ||
/// For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" | ||
/// Users could then use a synthax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
/// <remarks> | ||
/// Users can use this to plug-in custom assertions through C# extension methods. | ||
/// For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" | ||
/// Users could then use a synthax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
Plugging in Assertion extensibility as defined here: https://github.com/Microsoft/testfx-docs/blob/master/RFCs/002-Framework-Extensibility-Custom-Assertions.md