What is the order of execution in NUnit?

后端 未结 6 534
滥情空心
滥情空心 2021-02-05 19:09

I have been doing some research on test driven development and find it pretty cool.

One of the things I came across was that when you write your tests, there is an orde

6条回答
  •  时光说笑
    2021-02-05 20:05

    Be aware that the best practice is to keep the unit test cases independent of each other. So they can be understood, modified and run independently.

    Some consider setup and teardown a bad practice as well. See these links for the reasoning:

    • http://jamesnewkirk.typepad.com/posts/2007/09/why-you-should-.html
    • http://www.agileprogrammer.com/dotnetguy/articles/SetupTeardown.aspx

提交回复
热议问题