Exemplo n.º 1
0
        public void TestPhuongThucMo_QuayTrungVaKhongQuayTrung()
        {
            choiGame = new ChoiGame(500);
            int Nai = 499, Bau = 1;

            TienDatCuoc = new int[]
            {
                Nai, Bau, 0, 0, 0, 0
            };
            choiGame.Xoc(0, 2, 3); // quay trung Nai, khong quay trung bau
            Assert.AreEqual(1, choiGame.Mo(TienDatCuoc));
        }
Exemplo n.º 2
0
        public void TestPhuongThucMo()
        {
            choiGame = new ChoiGame(500);
            int Nai = 500;

            TienDatCuoc = new int[]
            {
                Nai, 0, 0, 0, 0, 0
            };
            choiGame.Xoc(0, 1, 2); // cho xuat hien 1 con Nai
            Assert.AreEqual(1, choiGame.Mo(TienDatCuoc));
        }