Switching Between Using NUnit and MSTest for Unit Testing

前端 未结 3 1230
生来不讨喜
生来不讨喜 2020-12-04 19:54

How can I configure a .NET solution (C#, .NET 2.0) to to allow other developers to make use of the same unit tests for the solution using either NUnit or MSTest?

Ba

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-04 20:31

    Do you have a mix of existing tests? If not, or you don't mind converting existing MSTests, I would standardize on NUnit. I strongly prefer NUnit over MSTest; it's faster and it doesn't force you to have the TestContext nonsense in your test classes. It's also more compatible with CI servers.

提交回复
热议问题