public void TestCreateCondition3() { string[] policyData = handler.CreateProductSimplePolicy("#9", ConditionType.PriceLesser, "7"); string[] expectedData = { "0", "Price", "<=", "7" }; CompareArrays(expectedData, policyData); Assert.AreEqual(1, handler.GetSessionPolicies().Length); }
public void TestCheckPolicySuccess2() { handler.CreateProductSimplePolicy("#9 Large", ConditionType.UsernameEqual, "Big Smoke"); handler.AddPolicy(0); Assert.IsTrue(handler.CheckRelevantPolicies("#9 Large", "Cluckin Bell", policies, "Big Smoke", "Grove Street", 2, 14.00)); }