Example #1
0
        public void ShouldEvaluateToTrueWifSdk()
        {
            WpiCheckEvaluator evaluator = new WpiCheckEvaluator();

            evaluator.ProductManager = productManager;
            Check check = new Check {
                CheckType = "WPISDK", Value = "WIFSDK"
            };
            IEvaluationContext nullContext = null;

            Assert.IsTrue(evaluator.Evaluate(check, nullContext));
        }
Example #2
0
        public void ShouldEvaluateToTrueWindowsAzureTools()
        {
            WpiCheckEvaluator evaluator = new WpiCheckEvaluator();

            evaluator.ProductManager = productManager;
            Check check = new Check {
                CheckType = "WindowsAzureToolsVS2010", Value = "WindowsAzureToolsVS2010"
            };
            IEvaluationContext nullContext = null;

            ;
            Assert.IsTrue(evaluator.Evaluate(check, nullContext));
        }
Example #3
0
        public void ShouldEvaluateToTrueIIS7CGCC()
        {
            WpiCheckEvaluator evaluator = new WpiCheckEvaluator();

            evaluator.ProductManager = productManager;
            Check check = new Check {
                CheckType = "IIS7CGCC", Value = "IIS7CGCC"
            };
            IEvaluationContext nullContext = null;

            ;
            Assert.IsTrue(evaluator.Evaluate(check, nullContext));
        }
Example #4
0
        public void ShouldEvaluateToTrueWifRuntime()
        {
            var evaluator = new WpiCheckEvaluator();

            evaluator.ProductManager = productManager;
            var check = new Check {
                CheckType = "WPIRuntime", Value = "WIFRuntime"
            };
            IEvaluationContext nullContext = null;

            bool evaluate = evaluator.Evaluate(check, nullContext);

            Assert.IsTrue(evaluate);
        }
Example #5
0
        public void ShouldEvaluateToFalseMySql()
        {
            var evaluator = new WpiCheckEvaluator();

            evaluator.ProductManager = productManager;
            var check = new Check {
                CheckType = "WPI", Value = "MySQL"
            };
            IEvaluationContext nullContext = null;

            bool evaluate = evaluator.Evaluate(check, nullContext);

            Assert.IsFalse(evaluate);
        }