public void File_Delete() { const string contents = "test"; var fn = GetNewFileNameOnTempPath(".txt"); System.IO.File.WriteAllText(fn, contents); Assert.IsTrue(System.IO.File.Exists(fn)); File.Delete(fn); Assert.IsFalse(System.IO.File.Exists(fn)); }