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