NUnit [TearDown] fails — what process is accessing my files?

前端 未结 11 2551
你的背包
你的背包 2021-02-12 14:17

Final Edit: I found a solution to the problem (at the bottom of the question).

I\'ve got an Nunit problem that\'s causing me grief. Edit:

11条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-12 14:50

    Thanks for the posted answer at the bottom. I was digging for hours for exactly the same case and

    GC.Collect ();
    GC.WaitForPendingFinalizers ();
    

    did the trick.

提交回复
热议问题