示例#1
0
        public void TryMapFalseForNumberHigherThanRange()
        {
            var range = new CidRange(0, 69, 0);

            var result = range.TryMap(250, out var _);

            Assert.False(result);
        }
示例#2
0
        public void TryMapMapsCorrectlyForNumberInRangeWithCidOffset()
        {
            var range = new CidRange(0, 69, 9);

            var result = range.TryMap(52, out var cid);

            Assert.True(result);

            Assert.Equal(61, cid);
        }