How to diagnose “TestFixtureSetUp Failed”

前端 未结 11 1112
感动是毒
感动是毒 2021-02-06 21:46

We use TeamCity as our CI server, and I\'ve just started seeing \"TestFixtureSetUp Failed\" in the test failure window.

Any idea how I go about debugging th

11条回答
  •  感情败类
    2021-02-06 22:25

    I had this issue and it was caused by adding a private readonly Dictionary in the class, much the same way that you add a private const string.

    I tried to make the Dictionary a constant but you can't do that at compile time. I solved this by putting my Dictionary in a method that returns it.

提交回复
热议问题