public void Create() { string tempFile = Path.Combine(Path.GetTempPath(), "CreatedFile.txt"); File.Delete(tempFile); ExtendedFileInfo efi = new ExtendedFileInfo(tempFile); using (FileStream stream = efi.Create()) { Assert.IsTrue(File.Exists(tempFile)); } }