Why do my tests fail when run together, but pass individually?

前端 未结 7 1195
有刺的猬
有刺的猬 2020-12-29 23:56

When I write a test in Visual Studio, I check that it works by saving, building and then running the test it in Nunit (right click on the test then run).

The test wo

7条回答
  •  死守一世寂寞
    2020-12-30 00:23

    look into the TestFixtureSetup, Setup, TestFixtureTearDown and TearDown.
    These attributes allow you to setup the testenvironment once, instead of once per test.

提交回复
热议问题