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)));
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.