Shouldly
Search…
SameAs
1
var apu = new Person { Name = "Apu" };
2
var homer = new Person { Name = "Homer" };
3
var skinner = new Person { Name = "Skinner" };
4
var barney = new Person { Name = "Barney" };
5
var theBeSharps = new List<Person> { homer, skinner, barney };
6
theBeSharps.ShouldBe(new[] { apu, homer, skinner, barney });
Copied!
Exception
1
theBeSharps
2
should be
3
[Apu, Homer, Skinner, Barney]
4
but was
5
[Homer, Skinner, Barney]
6
difference
7
[*Homer*, *Skinner*, *Barney*, *]
Copied!
Last modified 9mo ago
Copy link