Пример #1
0
        public void Board_IsOneHive_TwoHivesTest()
        {
            MockBoard b = new MockBoard("Base;InProgress;Black[3];WQ[-1,0,1];WS1[0,0,0];WG1[-2,1,1];BQ[-1,2,-1];BS1[0,1,-1]");

            Assert.IsTrue(b.IsOneHive());

            b.MovePiece(b.GetPiece(PieceName.WhiteSpider1), null);
            Assert.IsFalse(b.IsOneHive());
        }
Пример #2
0
        public void Board_IsOneHive_OnePieceTest()
        {
            MockBoard b = new MockBoard("Base;InProgress;Black[1];WS1[0,0,0]");

            Assert.IsTrue(b.IsOneHive());
        }
Пример #3
0
        public void Board_IsOneHive_NewGameTest()
        {
            MockBoard b = new MockBoard();

            Assert.IsTrue(b.IsOneHive());
        }
Пример #4
0
        public void Board_IsOneHive_OpenCircleTest()
        {
            MockBoard b = new MockBoard("Base;InProgress;Black[3];WQ[-1,0,1];WS1[0,0,0];WG1[-2,1,1];BQ[-1,2,-1];BS1[0,1,-1]");

            Assert.IsTrue(b.IsOneHive());
        }