Exemplo n.º 1
0
        public void NavigateNorth_Invalid_VerticalCoordinates_Fail()
        {
            GridNavigator sut = new GridNavigator();

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

            sut.InitializeCoordinates(new Point2D(-100000, 2));
            sut.NavigateTo(NavigationDirections.West);
        }
Exemplo n.º 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;
     }
 }
Exemplo n.º 4
0
        public void Invalid_HorizontalCoordinates_Fail()
        {
            GridNavigator sut = new GridNavigator();

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