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); }
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); }