예제 #1
0
        public void AppPoolCreateLocal()
        {
            // 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.");
            }

            AppPoolCreate task = new AppPoolCreate();

            task.BuildEngine         = new MockBuild();
            task.ApplicationPoolName = mAppPoolName;
            Assert.IsFalse(task.Execute(), "Execute Failed!");
        }
예제 #2
0
        public void TestFixtureInitilize()
        {
            Console.WriteLine("Setting up test objects...");

            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.");
            }

            AppPoolCreate task = new AppPoolCreate();

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

            Console.WriteLine("TestFixture SetUp is complete.");
        }
예제 #3
0
        public void AppPoolCreateRemote()
        {
            // 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.");
            }

            AppPoolCreate task = new AppPoolCreate();

            task.BuildEngine             = new MockBuild();
            task.ServerName              = mServer;
            task.ApplicationPoolName     = mAppPoolName;
            task.PeriodicRestartSchedule = "08:00, 20:00";
            task.AppPoolIdentityType     = 3;
            // task.WAMUserName = mWAMUsername
            // task.WAMUserPass = mWAMPassword
            Assert.IsTrue(task.Execute(), "Execute Failed!");
        }