Say I have this test:
[Test]
public void SomeTest()
{
var message = new Thing("foobar");
Assert.That(thing.Created, Is.EqualTo(DateTime.Now));
}
This could for example fail the constructor of Thing took a bit of time. Is there some sort of NUnit construct that would allow me to specify that the Created time don't have to be exactly equal to DateTime.Now, as long as it for example is within one second of it?
And yes I know constructors are not supposed to take much time, but just as an example :p