public void SetUp() { TempFileUtil.DeleteTempDir(FULL_CONFIGURED_LOG_DIR); TempFileUtil.DeleteTempDir(ARTIFACTS_DIR); TempFileUtil.CreateTempDir(ARTIFACTS_DIR); publisher = new XmlLogPublisher(); }
public void SetUp() { TempFileUtil.DeleteTempDir(FULL_CONFIGURED_LOG_DIR); TempFileUtil.DeleteTempDir(ARTIFACTS_DIR); TempFileUtil.CreateTempDir(ARTIFACTS_DIR); publisher = new ModificationHistoryPublisher(); }
protected void TearDown() { Verify(); mockHistoryParser.Verify(); mockFileSystem.Verify(); mockFileDirectoryDeleter.Verify(); TempFileUtil.DeleteTempDir(tempWorkDir); TempFileUtil.DeleteTempDir(tempHgDir); }
public void ShouldHandleArtifactDirectoryNotExisting() { // Setup mockSourceControl.ExpectNoCall("Purge", typeof(IProject)); TempFileUtil.DeleteTempDir("artifactDir"); Assert.IsFalse(Directory.Exists(artifactDirPath)); // Execute project.Purge(false, true, false); // Verify VerifyAll(); }
public void ShouldHandleArtifactDirectoryNotExisting() { // Setup TempFileUtil.DeleteTempDir("artifactDir"); Assert.IsFalse(Directory.Exists(artifactDirPath)); // Execute project.Purge(false, true, false); // Verify mockSourceControl.Verify(sourceControl => sourceControl.Purge(It.IsAny <IProject>()), Times.Never); VerifyAll(); }
public void CreateWorkingDirectoryIfItDoesNotExist() { string workingDirectory = TempFileUtil.GetTempPath("VSS"); TempFileUtil.DeleteTempDir(workingDirectory); Assert.IsFalse(Directory.Exists(workingDirectory)); ExpectToExecuteAndReturn(SuccessfulProcessResult()); vss.AutoGetSource = true; vss.WorkingDirectory = workingDirectory; vss.GetSource(IntegrationResultMother.CreateFailed()); Assert.IsTrue(Directory.Exists(workingDirectory)); TempFileUtil.DeleteTempDir(workingDirectory); }
public void SetUp() { TempFileUtil.DeleteTempDir(FULL_CONFIGURED_LOG_DIR); TempFileUtil.DeleteTempDir(ARTIFACTS_DIR); TempFileUtil.CreateTempDir(FULL_CONFIGURED_LOG_DIR); TempFileUtil.CreateTempDir(ARTIFACTS_DIR); TempFileUtil.CreateTempDir(SOURCE_DIR); TempFileUtil.CreateTempFile(SOURCE_DIR_PATH, "myfile.txt", "some content"); logPublisher = new XmlLogPublisher(); buildPublisher = new BuildPublisher(); artifactCleaner = new ArtifactCleanUpTask(); buildPublisher.AlwaysPublish = true; buildPublisher.UseLabelSubDirectory = true; buildPublisher.SourceDir = SOURCE_DIR_PATH; }
public void DeleteTempFiles() { TempFileUtil.DeleteTempDir("RemoteCruiseServerTest"); }
public void TestCreateTempDir() { TempFileUtil.CreateTempDir(TempDir); Assert.IsTrue(Directory.Exists(TempFileUtil.GetTempPath(TempDir))); TempFileUtil.DeleteTempDir(TempDir); }
public void TearDown() { TempFileUtil.DeleteTempDir("tempDir"); }
protected void TearDown() { TempFileUtil.DeleteTempDir(this); }
protected void TearDown() { TempFileUtil.DeleteTempDir("FileChangedWatcherTest"); }
public void TearDown() { TempFileUtil.DeleteTempDir("ccnet"); }
public void DeleteTempDir() { TempFileUtil.DeleteTempDir(TEMP_FOLDER); }
public void SetUp() { TempFileUtil.DeleteTempDir(TempDir); Assert.IsTrue(!Directory.Exists(TempFileUtil.GetTempPath(TempDir)), "Temp folder exists before test!"); }
protected void TearDown() { TempFileUtil.DeleteTempDir(TEMP_DIR); }
public void Teardown() { TempFileUtil.DeleteTempDir(TestFolder); }
public void Teardown() { TempFileUtil.DeleteTempDir("workingDir"); }
public static void CleanUp() { TempFileUtil.DeleteTempDir(TEMP_DIR); }
public void TearDown() { TempFileUtil.DeleteTempDir(TempDir); Assert.IsTrue(!Directory.Exists(TempFileUtil.GetTempPath(TempDir))); }
public void TearDown() { TempFileUtil.DeleteTempDir(FULL_CONFIGURED_LOG_DIR); TempFileUtil.DeleteTempDir(ARTIFACTS_DIR); TempFileUtil.DeleteTempDir(SOURCE_DIR); }
protected void RemoveTraceListenerAndCleanUp() { backup.Reset(); listener.Close(); TempFileUtil.DeleteTempDir(TempDir); }
public void DestroyFile() { TempFileUtil.DeleteTempDir("FileTaskResult"); }