public void Test_CreateAndDestroy() { string path = TempDir.Create("foobar"); Assert.IsTrue(Directory.Exists(path), path + " does not exists."); Assert.IsTrue(path.EndsWith("foobar"), path + " does not end with 'foobar'."); TempDir.Delete(path); Assert.IsFalse(Directory.Exists(path), path + " exists."); }
protected void SetUp() { _log = CreateXmlLogger(); _tempDir = TempDir.Create("NAnt.Tests.XmlLoggerTest"); }