Example #1
0
        public void NavigateNorth_Invalid_VerticalCoordinates_Fail()
        {
            GridNavigator sut = new GridNavigator();

            sut.InitializeCoordinates(new Point2D(-1, 100000));
            sut.NavigateTo(NavigationDirections.North);
        }
Example #2
0
        public void NavigateWest_Invalid_HorizontalCoordinates_Fail()
        {
            GridNavigator sut = new GridNavigator();

            sut.InitializeCoordinates(new Point2D(-100000, 2));
            sut.NavigateTo(NavigationDirections.West);
        }
Example #3
0
 public void Invalid_VerticalCoordinates_Fail()
 {
     try
     {
         GridNavigator sut = new GridNavigator();
         sut.InitializeCoordinates(new Point2D(-100000, 100001));
     }
     catch (InvalidOperationException ex)
     {
         Debug.WriteLine(ex.Message);
         throw;
     }
 }
Example #4
0
        public void Invalid_HorizontalCoordinates_Fail()
        {
            GridNavigator sut = new GridNavigator();

            sut.InitializeCoordinates(new Point2D(-100001, 2));
        }