예제 #1
0
        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");
        }
예제 #2
0
        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);
        }