public void BasicNoExistingDirectory() { string directory = Path.Combine(ObjectModelHelpers.TempProjectDir, Guid.NewGuid().ToString("N")); string log = Path.Combine(directory, "build.log"); Assert.False(Directory.Exists(directory)); Assert.False(File.Exists(log)); try { SetUpFileLoggerAndLogMessage("logfile=" + log, new BuildMessageEventArgs("message here", null, null, MessageImportance.High)); VerifyFileContent(log, "message here"); } finally { ObjectModelHelpers.DeleteDirectory(directory); } }