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

前端 未结 11 2561
你的背包
你的背包 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:47

    Thanks for pointing this out!

    The problem is not related to SQLite, but rather to memory management in general. After your test has run, the objects pointing to files have no scope anymore, but they still exist in memory.

    Hence, there's still references to the files and you can't delete / move them.

提交回复
热议问题