public void Test_TAGProcessorStateBase_SetAndGetMachineDirection() { var state = new TAGProcessorStateBase(); // Note: Machine direction cannot be set after a gear value is selected Assert.Equal(MachineDirection.Unknown, state.MachineDirection); state.SetMachineDirection(MachineDirection.Forward); Assert.Equal(MachineDirection.Forward, state.MachineDirection); state.ICGear = MachineGear.Forward; state.SetMachineDirection(MachineDirection.Reverse); Assert.NotEqual(MachineDirection.Reverse, state.MachineDirection); }