public void TestFixtureDispose()
        {
            Console.WriteLine("Cleaning up...");

            AppPoolDelete task = new AppPoolDelete();
            task.BuildEngine = new MockBuild();
            task.ApplicationPoolName = mAppPoolName;
            task.ServerName = mServer;
            task.Execute();

            Console.WriteLine("TestFixture TearDown is complete.");
        }
        public void AppPoolDeleteLocal()
        {
            // Local machine test
            mServer = "localhost";
            if (!TaskUtility.IsMinimumIISVersionInstalled(mServer, 6, 0))
            {
                Assert.Ignore(@"IIS 6.0 was not found on the machine.  IIS 6.0 is required to run this test.");
            }

            AppPoolDelete task = new AppPoolDelete();
            task.BuildEngine = new MockBuild();
            task.ApplicationPoolName = mAppPoolName;
            Assert.IsFalse(task.Execute(), "Execute Failed!");
        }
        public void AppPoolDeleteRemote()
        {
            // Remote machine test
            if (!TaskUtility.IsMinimumIISVersionInstalled(mServer, 6, 0))
            {
                Assert.Ignore(@"IIS 6.0 was not found on the machine.  IIS 6.0 is required to run this test.");
            }

            AppPoolDelete task = new AppPoolDelete();
            task.BuildEngine = new MockBuild();
            task.ServerName = mServer;
            task.ApplicationPoolName = mAppPoolName;
            // task.Username = mWAMUsername;
            // task.Password = mWAMPassword;
            Assert.IsTrue(task.Execute(), "Execute Failed!");
        }