Пример #1
0
            public void Throws_Exception_When_BoardCoordinate_Has_Zero_Y_Value()
            {
                var coordinate = new BoardCoordinate(1, 0);

                ExtendedAssert.Throws <ArgumentException>(() => Target.AddPiece(Piece, coordinate));
            }
Пример #2
0
            public void Throws_Exception_When_BoardCoordinate_Has_Larger_X_Value_Than_Board_Size()
            {
                var coordinate = new BoardCoordinate(9, 1);

                ExtendedAssert.Throws <ArgumentException>(() => Target.AddPiece(Piece, coordinate));
            }