예제 #1
0
 public void CheckHAOffNoPool()
 {
     var host = GetHostLiveness(GetMockConnectionWithCache(), true, false, true);
     //Execute the check
     var check = new HAOffCheck(host);
     var problem = check.RunCheck();
     Assert.IsNull(problem);
 }
예제 #2
0
        public void CheckHAOff()
        {
            var host = GetHostHA(false);

            //Execute the check
            var check = new HAOffCheck(host);
            var problem = check.RunCheck();
            Assert.IsNull(problem);
        }
예제 #3
0
        public void CheckHAON()
        {
            var host = GetHostHA(true);

            //Execute the check
            var check = new HAOffCheck(host);
            var problem = check.RunCheck();
            Assert.IsNotNull(problem);
            Assert.AreEqual(typeof(HAEnabledProblem), problem.GetType());
        }