Skip to content

Commit

Permalink
adds test for string collection equivalency (#1843)
Browse files Browse the repository at this point in the history
  • Loading branch information
chvollm committed Mar 10, 2022
1 parent d93bc09 commit 6005b16
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -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()
{
Expand Down

0 comments on commit 6005b16

Please sign in to comment.