Exemple #1
0
        public void TestRoverStateCanCloneOtherRoverState(RoverState state)
        {
            var clonedState = RoverState.Clone(state);

            Assert.True(clonedState.Equals(state));
            Assert.True(state.Equals(clonedState));
        }
Exemple #2
0
 public void TestRoverStateCanCompareEquality(RoverState state1, RoverState state2, bool expected)
 {
     Assert.Equal(expected, state1.Equals(state2));
     Assert.Equal(expected, state2.Equals(state1));
 }
Exemple #3
0
        public void RoverCanReturnCurrentSatus(RoverState initialState)
        {
            var rover = new Rover.Rover(_fixture.map, initialState);

            Assert.True(initialState.Equals(rover.GetCurrentState()));
        }