Example #1
0
        public void gridDimension_WhenGridCoordinatesNotAInteger_MustThrowException()
        {
            string        gridsize      = "C T";
            LawnDimension lawnDimension = new LawnDimension();

            LawnDimension.gridDimension(gridsize);
        }
Example #2
0
        public void gridDimension_WhenPassingValidGridYCoordinate()
        {
            string gridsize = "1 2";
            var    gridY    = 2;

            LawnDimension lawnDimension = new LawnDimension();

            lawnDimension = LawnDimension.gridDimension(gridsize);

            Assert.AreEqual(gridY, lawnDimension.GridY);
        }