Ejemplo n.º 1
0
        public void Tabletop_InitialInputInGrid_IsValidPosition()
        {
            var tabletop = new ToyTabletop(5, 5);
            var result   = tabletop.IsValidPosition(5, 5);

            Assert.True(result);
        }
Ejemplo n.º 2
0
        public void Tabletop_NegativeYInitialInput_IsValidPosition()
        {
            var tabletop = new ToyTabletop(5, 5);
            var result   = tabletop.IsValidPosition(5, -1);

            Assert.False(result);
        }
Ejemplo n.º 3
0
        public void Tabletop_InitialInputOuterGrid_IsNotValidPosition()
        {
            var tabletop = new ToyTabletop(5, 5);
            var result   = tabletop.IsValidPosition(6, 6);

            Assert.False(result);
        }