In NUnit, I can do the following:
Assert.That(1.05,Is.EqualTo(1.0).Within(0.1));
I can also do this:
Assert.That(new[]{1.0,2.0,3.0},Is.EquivalentTo(new[]{3.0,2.0,1.0}));
Now I would like to do something on this line
Assert.That(new[]{1.05,2.05,3.05}, Is.EquivalentTo(new[]{3.0,2.0,1.0}).Within(0.1));
With the exception of the Within keyword, this is not supported. Is there a workaround or other approach that would make this easy?
c # nunit
Benoittr
source share