コード例 #1
0
        public void Tabletop_InitialInputInGrid_IsValidPosition()
        {
            var tabletop = new ToyTabletop(5, 5);
            var result   = tabletop.IsValidPosition(5, 5);

            Assert.True(result);
        }
コード例 #2
0
        public void Tabletop_NegativeYInitialInput_IsValidPosition()
        {
            var tabletop = new ToyTabletop(5, 5);
            var result   = tabletop.IsValidPosition(5, -1);

            Assert.False(result);
        }
コード例 #3
0
        public void Tabletop_InitialInputOuterGrid_IsNotValidPosition()
        {
            var tabletop = new ToyTabletop(5, 5);
            var result   = tabletop.IsValidPosition(6, 6);

            Assert.False(result);
        }