public void Test_TAGProcessorStateBase_SetAgeOfCorrection() { var state = new TAGProcessorStateBase(); Assert.True(state.AgeOfCorrections.GetLatest() == 0, "Initial value incorrect"); state.SetAgeOfCorrection(100); Assert.True(state.AgeOfCorrections.NumAttrs == 2 && (byte)state.AgeOfCorrections.GetLatest() == 100, "Initial value incorrect"); }
public override bool ProcessUnsignedIntegerValue(TAGValueMatcherState state, TAGProcessorStateBase valueSink, TAGDictionaryItem valueType, uint value) { bool result = false; if (valueType.Type == TAGDataType.t4bitUInt) { valueSink.SetAgeOfCorrection((byte)value); result = true; } return(result); }