Ejemplo n.º 1
0
 public void CheckHAOffNoPool()
 {
     var host = GetHostLiveness(GetMockConnectionWithCache(), true, false, true);
     //Execute the check
     var check = new HAOffCheck(host);
     var problems = check.RunAllChecks();
     Assert.IsEmpty(problems);
 }
Ejemplo n.º 2
0
        public void CheckHAOff()
        {
            var host = GetHostHA(false);

            //Execute the check
            var check = new HAOffCheck(host);
            var problems = check.RunAllChecks();
            Assert.IsEmpty(problems);
        }
Ejemplo n.º 3
0
        public void CheckHAON()
        {
            var host = GetHostHA(true);

            //Execute the check
            var check = new HAOffCheck(host);
            var problems = check.RunAllChecks();
            Assert.IsNotEmpty(problems);
            Assert.AreEqual(typeof(HAEnabledProblem), problems[0].GetType());
        }