protected override void AfterAll() { base.AfterAll(); //give the system enough time to shutdown and release the file handle Thread.Sleep(500); _manyLinesPath?.Delete(); _testFilePath?.Delete(); } }