public void WheelAddOutcome() { bin0 = wheel.Get(0); int count = bin0.Count; wheel.AddOutcome(0, outcome4); wheel.AddOutcome(0, outcome5); wheel.AddOutcome(0, outcome6); Assert.AreEqual(bin0.Count, count + 3); // Out of Range Check wheel.AddOutcome(-1, outcome9); wheel.AddOutcome(100, outcome9); }
public void GenerateStraightBetsTest() { outcome0 = new Outcome("0", 35); outcome1 = new Outcome("3", 35); outcome2 = new Outcome("8", 35); outcome3 = new Outcome("21", 35); outcome4 = new Outcome("00", 35); binBuilder.GenerateStraightBets(wheel); bin = wheel.Get(0); Assert.IsTrue(bin.Contains(outcome0)); bin = wheel.Get(3); Assert.IsTrue(bin.Contains(outcome1)); bin = wheel.Get(8); Assert.IsTrue(bin.Contains(outcome2)); bin = wheel.Get(21); Assert.IsTrue(bin.Contains(outcome3)); bin = wheel.Get(37); Assert.IsTrue(bin.Contains(outcome4)); }