protected void DeleteTempDir() { if (tempDir.Exists()) { tempDir.DeleteDirectory(); } }
public void ReadUnicodeFile() { SystemPath tempDirectory = SystemPath.UniqueTempPath().CreateDirectory(); try { const string content = "yooo ез"; SystemPath tempFile = tempDirectory.CreateTextFile("test.txt", content); ProcessInfo processInfo = new ProcessInfo("cmd.exe", "/C type \"" + tempFile + "\""); processInfo.StreamEncoding = Encoding.UTF8; ProcessResult result = executor.Execute(processInfo); Assert.IsTrue(!result.Failed); Assert.AreEqual(content + Environment.NewLine, result.StandardOutput); } finally { tempDirectory.DeleteDirectory(); } }
public void TearDown() { tempRoot.DeleteDirectory(); tempOtherRoot.DeleteDirectory(); }
public void DeleteTempDirectory() { testDir.DeleteDirectory(); }
protected void DeleteTempFile() { tempOutputFile.DeleteDirectory(); }
public void TearDown() { srcRoot.DeleteDirectory(); pubRoot.DeleteDirectory(); }