-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
When the lists being compared are large the output when they do not match is difficult to read.
In some cases I filter out the duplicates before calling the ShouldContain* method. Should this be done by Given?
List<string> expectedValues;
List<string> resultValues;
// Remove identical items improves error messages.
foreach (string o in expectedValues.Clone())
{
if (resultValues.Remove(o))
{
expectedValues.Remove(o);
}
}
then(() => { resultValues.ShouldContainOnly(expectedValues); });
Metadata
Metadata
Assignees
Labels
No labels