public void TestCreateCondition6() { string[] policyData = handler.CreateStockItemSimplePolicy("Cluckin Bell", "#9 Large", ConditionType.UsernameEqual, "Big Smoke"); string[] expectedData = { "0", "Username", "=", "Big Smoke" }; CompareArrays(expectedData, policyData); Assert.AreEqual(1, handler.GetSessionPolicies().Length); }
public void TestCheckPolicySuccess4() { handler.CreateStockItemSimplePolicy("Cluckin Bell", "#9 Large", ConditionType.PriceLesser, "21.0"); handler.AddPolicy(0); Assert.IsTrue(handler.CheckRelevantPolicies("#9 Large", "Cluckin Bell", policies, "Big Smoke", "Grove Street", 2, 14.00)); }