Esempio n. 1
0
        public void ShouldDefaultHeightAndWidthTo8WhenNoSupplidOnConstructor()
        {
            var chessboard = new StandardChessboard();

            Assert.That(chessboard.Height, Is.EqualTo(8));
            Assert.That(chessboard.Width, Is.EqualTo(8));
        }
Esempio n. 2
0
        public void ShouldSetCustomerHeightAndWidth()
        {
            const int height     = 4;
            const int width      = 5;
            var       chessboard = new StandardChessboard(height, width);

            Assert.That(chessboard.Height, Is.EqualTo(height));
            Assert.That(chessboard.Width, Is.EqualTo(width));
        }
Esempio n. 3
0
 public void Setup()
 {
     _emptyStandardChessboard = new StandardChessboard();
     _trackingChessboard      = new TrackingChessBoardV1(_emptyStandardChessboard);
 }