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

Adds test for string collection equivalency #1843

Merged
merged 1 commit into from Mar 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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