Automate Testing on future only items business rules

Posted by Titan on Stack Overflow See other posts from Stack Overflow or by Titan
Published on 2010-05-05T02:00:40Z Indexed on 2010/05/05 2:08 UTC
Read the original article Hit count: 342

I currently have a business object with a validation business rule, which is it can only be created for the future, tomorrow onwards, and I cannot create new items for today.

I have a process, which runs the non-future business objects through some steps..

Because I have to set things up today, and test tomorrow, and when it fails, I can only create a new object tomorrow and test the following day.

Are there any easy ways to automate this process in any testing frameworks? I think our testers are using the visual studio 2010 test manager. How do you guys manage situations like this?

Cheers

© Stack Overflow or respective owner

Related posts about .NET

Related posts about unit-testing