Beispiel #1
0
        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);
        }
Beispiel #2
0
        public void TestInitialize()
        {
            wheel = new Wheel();

            outcome0 = new Outcome("0", 35);
            outcome1 = new Outcome("1", 35);
            outcome2 = new Outcome("2", 35);
            outcome3 = new Outcome("3", 35);
            outcome4 = new Outcome("4", 35);
            outcome5 = new Outcome("5", 35);
            outcome6 = new Outcome("6", 35);
            outcome7 = new Outcome("7", 35);
            outcome8 = new Outcome("8", 35);
            outcome9 = new Outcome("9", 35);

            wheel.AddOutcome(0, outcome0);
            wheel.AddOutcome(0, outcome1);
            wheel.AddOutcome(0, outcome2);
            wheel.AddOutcome(0, outcome3);

            wheel.AddOutcome(1, outcome4);
            wheel.AddOutcome(1, outcome5);
            wheel.AddOutcome(1, outcome6);
            wheel.AddOutcome(1, outcome7);
            wheel.AddOutcome(1, outcome8);
            wheel.AddOutcome(1, outcome9);

            wheel.AddOutcome(9, outcome0);
            wheel.AddOutcome(9, outcome1);
            wheel.AddOutcome(9, outcome2);

            wheel.AddOutcome(4, outcome3);
            wheel.AddOutcome(4, outcome4);
            wheel.AddOutcome(4, outcome5);
            wheel.AddOutcome(4, outcome6);
            wheel.AddOutcome(4, outcome7);
        }