Beispiel #1
0
        public void Test_TAGProcessorStateBase_SetVolkelMeasRange()
        {
            var state = new TAGProcessorStateBase();

            Assert.True(state.VolkelMeasureRanges.GetLatest() == CellPassConsts.NullVolkelMeasRange, "Initial value incorrect");
            state.SetVolkelMeasRange(100);
            Assert.True(state.VolkelMeasureRanges.NumAttrs == 2 && state.VolkelMeasureRanges.GetLatest() == 100, "Initial value incorrect");
        }
Beispiel #2
0
        public override bool ProcessUnsignedIntegerValue(TAGValueMatcherState state, TAGProcessorStateBase valueSink,
                                                         TAGDictionaryItem valueType, uint value)
        {
            bool result = false;

            if (valueType.Type == TAGDataType.t4bitUInt)
            {
                valueSink.SetVolkelMeasRange((byte)value);
                result = true;
            }

            return(result);
        }