Exemplo n.º 1
0
 public void TestCreateCondition5()
 {
     string[] policyData =
         handler.CreateGlobalSimplePolicy(ConditionType.QuantityLesser, "2");
     string[] expectedData = { "0", "Quantity", "<=", "2" };
     CompareArrays(expectedData, policyData);
     Assert.AreEqual(1, handler.GetSessionPolicies().Length);
 }
Exemplo n.º 2
0
 public void TestCheckPolicySuccess5()
 {
     handler.CreateGlobalSimplePolicy(ConditionType.QuantityLesser, "5");
     handler.AddPolicy(0);
     Assert.IsTrue(handler.CheckRelevantPolicies("#9 Large", "Cluckin Bell", policies, "Big Smoke", "Grove Street", 2, 14.00));
 }