Skip to content
Cyrille DUPUYDAUBY edited this page Feb 2, 2018 · 21 revisions

The following checks are avaible for all implementation of IEnumerable or IEnumerable.

HasSize

Checks that the sut contains the expected number of entries.

var sut = new int[10];
// this check succeeds
Check.That(sut).HasSize(10);
// this check fails
Check.That(sut).HasSize(11);

Clone this wiki locally