Subscribe to this list via RSS Blog posts tagged in Moles

Posted by on in Blogs
Testing Cross Cutting Concerns So imagine you've been asked to implement the following requirement: When a to-do list item is marked as complete, the CompletedOn date time property shall be set to the current time. That doesn't sound so hard to implement, but how can I test it? I don't know precisely what the value of the CompletedOn property "should be" since I don't know precisely when the Complete setter will run. Method #1: Fuzzy Logic One option would be to see if the value is "close enough": var todo = new TodoIt...
  • Page :
  • 1

Check out more tips and tricks in this development video: