public void WebDirectoryCreateLocal()
		{
			// 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.");
			}

			WebDirectoryCreate task = new WebDirectoryCreate();
			task.BuildEngine = new MockBuild();
			task.VirtualDirectoryName = mVirtualDirectoryName;
			task.VirtualDirectoryPhysicalPath = mVirtualDirectoryPhysicalPath;
			Assert.IsTrue(task.Execute(), "Execute Failed!");
		}
        public void CreateTestWebDirectory()
        {
            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.");
            }

            WebDirectoryCreate task = new WebDirectoryCreate();
            task.BuildEngine = new MockBuild();
            task.VirtualDirectoryName = TestWebDirectoryName;
            task.VirtualDirectoryPhysicalPath = TestWebDirectoryPath;
            task.AuthAnonymous = true;
            if (!task.Execute())
            {
                Assert.Ignore("Unable to create test web directory. IIS is probably not available.");
            }
        }
		public void WebDirectoryCreateRemote()
		{
			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.");
			}

			WebDirectoryCreate task = new WebDirectoryCreate();
			task.BuildEngine = new MockBuild();
			task.ServerName = mServer;
			task.VirtualDirectoryName = mVirtualDirectoryName;
			task.VirtualDirectoryPhysicalPath = mVirtualDirectoryPhysicalPath;
			Assert.IsTrue(task.Execute(), "Execute Failed!");
		}