Skip the SetUp method only for a particular test in NUnit?

后端 未结 6 1813
时光说笑
时光说笑 2021-01-01 19:47

I have a test where I do not need to run the SetUp method (attributed with [SetUp]) before running the test. I need the SetUp method t

6条回答
  •  被撕碎了的回忆
    2021-01-01 19:52

    I don't believe you can do that, it would involve knowing what test was about to run which I don't think is possible.

    I'd suggest you put it within a different [TestFixture]

提交回复
热议问题