public void TidyUpXmlFilesDeletesXmlFilesWhenNotDebugging() { string testFilePath = TestFileHelper.UseTestMasterFile("YourXmlFile.xml"); FilesUtility util = new FilesUtility(); util.TidyUpXmlFiles(false, TestFileHelper.TestDirectoryName); Assert.IsFalse(File.Exists(testFilePath)); // any other tests here. }