示例#1
0
文件: PlayerTest.cs 项目: nickxbs/IA
        public void Elaborazione_SideA_ReturnRandomNumBetween0And5()
        {
            IAIPlayer player = new RandomPlayer();

            player.LatoPlayer = Lato.A;
            int i = player.Elaborazione(null);

            Assert.GreaterOrEqual(i, 0);
            Assert.GreaterOrEqual(5, i);
        }
示例#2
0
文件: PlayerTest.cs 项目: nickxbs/IA
        public void Elaborazione_SideB_ReturnRandomNumBetween7And12()
        {
            IAIPlayer player = new RandomPlayer();

            player.LatoPlayer = Lato.B;

            int i = player.Elaborazione(null);

            Assert.GreaterOrEqual(i, 7);
            Assert.GreaterOrEqual(12, i);
        }