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

[Docs] ContainItemsAssignableTo #1841

Closed
cheng93 opened this issue Mar 8, 2022 · 0 comments · Fixed by #1873
Closed

[Docs] ContainItemsAssignableTo #1841

cheng93 opened this issue Mar 8, 2022 · 0 comments · Fixed by #1873

Comments

@cheng93
Copy link

cheng93 commented Mar 8, 2022

With the fixes for #1618 the docs need updating.

https://fluentassertions.com/tips/#collections

MSTest FluentAssertions
CollectionAssert.AllItemsAreInstancesOfType(actual, typeof(T)); actual.Should().ContainItemsAssignableTo<T>();
CollectionAssert.AllItemsAreInstancesOfType failed. Element at index 0 is not of expected type. Expected type:<UnitTests2.MyIdenticalClass>. Actual type:<UnitTests2.MyClass>. Expected collection to contain only items of type UnitTests2.MyIdenticalClass, but item SomeProperty: 1, OtherProperty: item at index 0 is of type UnitTests2.MyClass.
IT-VBFK added a commit to IT-VBFK/fluentassertions that referenced this issue Mar 31, 2022
IT-VBFK added a commit to IT-VBFK/fluentassertions that referenced this issue Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants