diff --git a/Tests/FluentAssertions.Specs/Collections/GenericCollectionAssertionOfStringSpecs.cs b/Tests/FluentAssertions.Specs/Collections/GenericCollectionAssertionOfStringSpecs.cs index cabbe5465a..72e447b12a 100644 --- a/Tests/FluentAssertions.Specs/Collections/GenericCollectionAssertionOfStringSpecs.cs +++ b/Tests/FluentAssertions.Specs/Collections/GenericCollectionAssertionOfStringSpecs.cs @@ -1458,6 +1458,17 @@ public void When_two_collections_contain_the_same_elements_it_should_treat_them_ collection1.Should().BeEquivalentTo(collection2); } + [Fact] + public void When_two_arrays_contain_the_same_elements_it_should_treat_them_as_equivalent() + { + // Arrange + string[] array1 = new[] { "one", "two", "three" }; + string[] array2 = new[] { "three", "two", "one" }; + + // Act / Assert + array1.Should().BeEquivalentTo(array2); + } + [Fact] public void When_two_collections_contain_the_same_items_but_in_different_order_it_should_throw_with_a_clear_explanation() {