You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
With the fixes for #1618 the docs need updating.
https://fluentassertions.com/tips/#collections
CollectionAssert.AllItemsAreInstancesOfType(actual, typeof(T));
actual.Should().ContainItemsAssignableTo<T>();
The text was updated successfully, but these errors were encountered: