public void RemoveTestWebDirectory() { WebDirectoryDelete task = new WebDirectoryDelete(); task.BuildEngine = new MockBuild(); task.VirtualDirectoryName = TestWebDirectoryName; task.Execute(); }
public void WebDirectoryDeleteLocal() { // Local machine test if (!TaskUtility.IsMinimumIISVersionInstalled("localhost", 5, 0)) { Assert.Ignore(@"IIS 5.0 was not found on the machine. IIS 5.0 is required to run this test."); } WebDirectoryDelete task = new WebDirectoryDelete(); task.BuildEngine = new MockBuild(); task.VirtualDirectoryName = mVirtualDirectoryName; Assert.IsTrue(task.Execute(), "Execute Failed!"); }
public void WebDirectoryDeleteRemote() { string mServer = mRemoteServer; if (!TaskUtility.IsAdminOnRemoteMachine(mServer)) { Assert.Ignore(String.Format("Unable to connect as administrator to {0}", mServer)); } // Remote machine test if (!TaskUtility.IsMinimumIISVersionInstalled(mServer, 5, 0)) { Assert.Ignore(@"IIS 5.0 was not found on the machine. IIS 5.0 is required to run this test."); } WebDirectoryDelete task = new WebDirectoryDelete(); task.BuildEngine = new MockBuild(); task.ServerName = mServer; task.VirtualDirectoryName = mVirtualDirectoryName; // task.Username = mWAMUsername; // task.Password = mWAMPassword; Assert.IsTrue(task.Execute(), "Execute Failed!"); }