public void Test_TAGProcessorStateBase_SetElevationMappingModeState() { var state = new TAGProcessorStateBase(); state.ElevationMappingMode.Should().Be(ElevationMappingMode.LatestElevation); state.SetElevationMappingModeState(ElevationMappingMode.MinimumElevation); state.ElevationMappingMode.Should().Be(ElevationMappingMode.MinimumElevation); }
public override bool ProcessUnsignedIntegerValue(TAGValueMatcherState state, TAGProcessorStateBase valueSink, TAGDictionaryItem valueType, uint value) { if (valueType.Type == TAGDataType.t8bitUInt && (value == (byte)ElevationMappingMode.LatestElevation || value == (byte)ElevationMappingMode.MinimumElevation)) { valueSink.SetElevationMappingModeState((ElevationMappingMode)value); return(true); } return(false); }