Example #1
0
        public void RoverIsShouldBeHeadingToWest()
        {
            // -- arrange
            var rover = new Rover
            {
                Destination = new Position {
                    X = 0, Y = 0, Direction = Direction.W
                }
            };

            // -- assert
            rover.DestToNorth().ShouldBeEquivalentTo(false);
            rover.DestToSouth().ShouldBeEquivalentTo(false);
            rover.DestToEast().ShouldBeEquivalentTo(false);
            rover.DestToWest().ShouldBeEquivalentTo(true);
        }