Пример #1
0
 static void CheckParse(string input, byte[] expected)
 {
     var parser = new ParseByteArray { Processor =  Builder.CellProcessor() };
     Assert.IsTrue(parser.CanParse(typeof (byte[]), TypedValue.Void, new CellTreeLeaf(input)));
     TypedValue result = parser.Parse(typeof (byte[]), TypedValue.Void, new CellTreeLeaf(input));
     Assert.AreEqual(expected, result.Value);
 }
Пример #2
0
        static void CheckParse(string input, byte[] expected)
        {
            var parser = new ParseByteArray {
                Processor = Builder.CellProcessor()
            };

            Assert.IsTrue(parser.CanParse(typeof(byte[]), TypedValue.Void, new CellTreeLeaf(input)));
            TypedValue result = parser.Parse(typeof(byte[]), TypedValue.Void, new CellTreeLeaf(input));

            Assert.AreEqual(expected, result.Value);
        }