المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to make auto-generated unit tests fail initially?



C# Programming
01-07-2012, 03:12 AM
I got a question about TDD and unit test using Visual Studio 2008 Pro. One of the TDD requirements reads something like "All tests should fail initially when there is no coding yet!" However, when I generate a test project from VS 2008 Pro, all tests can pass before any coding. Do I have to add code to the test project, in order to make the test fail initially? Or am I missing something here?
Best,
Jun