If I create an IDisposable during the TestFixtureSetup of an NUnit test, and the test throws an unanticipated exception (e.g. external resource fails), will the IDisposable's Dispose() get called?
增加& gt; 如果不是,nunit是否提供TestFixtureTowardown或其他可用于清理的地方的保证执行?
IDisposable using Dispose TestFixtureTearDown 不过。
using
TestFixtureTearDown