I really like NUnit's fluent interface for constraints, and have been using it a lot. The gem I learned today is about specifying an acceptance range:
DateTime actual, expected; // ... Assert.That(actual, Is.EqualTo(expected).Within(TimeSpan.FromSeconds(3)));

0 comments:
Post a Comment