public void TestRoverStateCanCloneOtherRoverState(RoverState state) { var clonedState = RoverState.Clone(state); Assert.True(clonedState.Equals(state)); Assert.True(state.Equals(clonedState)); }
public void TestRoverStateCanCompareEquality(RoverState state1, RoverState state2, bool expected) { Assert.Equal(expected, state1.Equals(state2)); Assert.Equal(expected, state2.Equals(state1)); }
public void RoverCanReturnCurrentSatus(RoverState initialState) { var rover = new Rover.Rover(_fixture.map, initialState); Assert.True(initialState.Equals(rover.GetCurrentState())); }