Exemple #1
0
        public void RotateLeftFromNorth_ExpectedWest()
        {
            // Arrange
            _rover.SetHeading(Heading.North);

            // Act
            _rover.RotateLeft();

            // Assert
            Assert.IsTrue(_rover.GetHeading() == Heading.West);
        }
Exemple #2
0
 public Heading GetRoverHeading(IRover rover)
 {
     return(rover.GetHeading());
 }