示例#1
0
 public void TestCreateCondition2()
 {
     string[] policyData =
         handler.CreateStoreSimplePolicy("Cluckin' Bell", ConditionType.PriceGreater, "7");
     string[] expectedData = { "0", "Price", ">=", "7" };
     CompareArrays(expectedData, policyData);
     Assert.AreEqual(1, handler.GetSessionPolicies().Length);
 }
示例#2
0
 public void TestCheckPolicySuccess3()
 {
     handler.CreateStoreSimplePolicy("Cluckin Bell", ConditionType.PriceGreater, "7.0");
     handler.AddPolicy(0);
     Assert.IsTrue(handler.CheckRelevantPolicies("#9 Large", "Cluckin Bell", policies, "Big Smoke", "Grove Street", 2, 14.00));
 }