Forcing MSTest to use a single thread

前端 未结 6 735
抹茶落季
抹茶落季 2020-12-09 01:48

Given this test fixture:

[TestClass]
public class MSTestThreads
{
    [TestMethod]
    public void Test1()
    {
              


        
6条回答
  •  时光说笑
    2020-12-09 02:30

    I've fought for endless hours to make MSTest run in a single threaded mode on a large project that made heavy use of nHibernate and it's not-thread-safe (not a problem, it's just not) ISession.

    We ended up more time writing code to support the multi-threaded nature of MSTest because - to the best of my and my teams knowledge - it is not possible to run MSTest in a single threaded mode.

提交回复
热议问题