Пример #1
0
        public void Should_ReturnFalse_When_TwoNodes_6_0_4()
        {
            var cluster = Mock.Of <IInternalCluster>();

            Mock.Get(cluster).Setup(c => c.AllHosts()).Returns(GetHosts("6.0.4", "6.0.4"));

            var target = new InsightsSupportVerifier();

            Assert.IsFalse(target.SupportsInsights(cluster));
        }
Пример #2
0
        public void Should_ReturnFalse_When_OneNode5_1_12()
        {
            var cluster = Mock.Of <IInternalCluster>();

            Mock.Get(cluster).Setup(c => c.AllHosts()).Returns(GetHosts("5.1.12"));

            var target = new InsightsSupportVerifier();

            Assert.IsFalse(target.SupportsInsights(cluster));
        }
Пример #3
0
        public void Should_ReturnTrue_When_OneNode_6_1_0_AndOneNode_6_0_5()
        {
            var cluster = Mock.Of <IInternalCluster>();

            Mock.Get(cluster).Setup(c => c.AllHosts()).Returns(GetHosts("6.1.0", "6.0.5"));

            var target = new InsightsSupportVerifier();

            Assert.IsTrue(target.SupportsInsights(cluster));
        }