public void TearDown() { window.Close(); foreach (var file in deleteFileList) { Assert.IsTrue(File.Exists(file)); File.Delete(file); Assert.IsFalse(File.Exists(file)); } deleteFileList.Clear(); }