예제 #1
0
 public void TestCreateCondition1()
 {
     string[] policyData =
         handler.CreateCategorySimplePolicy("Food", ConditionType.AddressEqual, "Grove Street");
     string[] expectedData = { "0", "Address", "=", "Grove Street" };
     CompareArrays(expectedData, policyData);
     Assert.AreEqual(1, handler.GetSessionPolicies().Length);
 }
예제 #2
0
 public void TestCheckPolicySuccess1()
 {
     handler.CreateCategorySimplePolicy("Food", ConditionType.AddressEqual, "Grove Street");
     handler.AddPolicy(0);
     Assert.IsTrue(handler.CheckRelevantPolicies("#9 Large", "Cluckin Bell", policies, "Big Smoke", "Grove Street", 2, 14.00));
 }