Replies: 1 comment 3 replies
-
In 6.0.0 we removed some If var subject = new List<object>();
subject.Should().Contain(new[] { 1 }); Related material: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently I had to write a couple of assertions which looked similar to this:
It would be great if I could write the
Assert
block like this:For this I'd need two overloads within
GenericCollectionsAssertions
:public AndConstraint<TAssertions> Contain(params T[] expected)
public AndConstraint<TAssertions> NotContain(params T[] unexpected)
What do you think about this? If you like the idea, I'd love to provide a PR.
Beta Was this translation helpful? Give feedback.
All reactions