Would it be possible to add Assert.That(i, Is.Even);/Assert.That(i, Is.Odd); for integers, as well as Assert.That(i, Is.MultipleOf(step));?
I am fully aware all this can be achieved by simple numerics. Still, it would be convenient and more explicitly visible what is intended:
var items = GetItems();
Assert.That(items.Length, Is.Even);
for (int i = 0; i < items.Length; i += 2)
{
// Do something with item pairs.
}
var items = GetItems();
Assert.That(items.Length, Is.MultipleOf(3));
for (int i = 0; i < items.Length; i += 3)
{
// Do something with item triples.
}
Would it be possible to add
Assert.That(i, Is.Even);/Assert.That(i, Is.Odd);for integers, as well asAssert.That(i, Is.MultipleOf(step));?I am fully aware all this can be achieved by simple numerics. Still, it would be convenient and more explicitly visible what is intended: