Пример #1
0
        public void TextMapHelperGGetInputFilterStruct()
        {
            tlog.Debug(tag, $"TextMapHelperGetInputFilterStruct START");

            var map = new PropertyMap();

            map.Add(0, new PropertyValue(@"[\d]"));
            map.Add(1, new PropertyValue("[0-3]"));

            var inputFilter = TextMapHelper.GetInputFilterStruct(map);

            Assert.AreEqual(@"[\d]", inputFilter.Accepted, "Should be equal!");
            Assert.AreEqual("[0-3]", inputFilter.Rejected, "Should be equal!");

            tlog.Debug(tag, $"TextMapHelperGetInputFilterStruct END (OK)");
        }