Skip to content
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

Merged
merged 4 commits into from
Mar 20, 2017
Merged

Plugging in Assertion extensibility #117

merged 4 commits into from
Mar 20, 2017

Conversation

AbhitejJohn
Copy link
Contributor

@msftclas
Copy link

@AbhitejJohn,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

/// <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&lt;T&gt;(this Assert assert, object obj)"
/// Users could then use a synthax similar to the default assertions which in this case is "Assert.That.IsOfType&lt;Dog&gt;(animal);"
Copy link
Member

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);"
Copy link
Member

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);"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants