Should().Equal() will compare the individual items within the two collections, but doesn't care about the collection type itself. Unfortunately, we don't have the Should().BeSameAs() on the collection, unless you do something like liste1.Should<object>().BeSameAs(liste2);
↧