Skip to content

Instantly share code, notes, and snippets.

@vcaraulean
Created September 12, 2018 14:30
Show Gist options
  • Save vcaraulean/1833793f4fa8e2e2ed01dd803c169aad to your computer and use it in GitHub Desktop.
Save vcaraulean/1833793f4fa8e2e2ed01dd803c169aad to your computer and use it in GitHub Desktop.
Nunit 3.10.1 and NUnit 3.9.0 have different results in asserting this scenario
[Test]
public void EquivalentCollection()
{
var c1 = new[] { 1, 2, 3 };
var c2 = new[] { 1, 2, 3 };
Assert.That(c1, Is.EquivalentTo(c2).Using<int, int>((first, second) =>
{
Assert.That(first, Is.EqualTo(second));
return true;
}));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment