public void TestHexStringBad() { var obj = new HexPlugin(); var args = new Dictionary <string, Variant>(); args["arg"] = new Variant("Hello"); ParameterParser.Parse(obj, args); }
public void TestHexStringGood() { var obj = new HexPlugin(); var args = new Dictionary <string, Variant>(); args["arg"] = new Variant("000102030405"); ParameterParser.Parse(obj, args); Assert.NotNull(obj.arg); Assert.NotNull(obj.arg.Value); Assert.AreEqual(6, obj.arg.Value.Length); for (int i = 0; i < obj.arg.Value.Length; ++i) { Assert.AreEqual(obj.arg.Value[i], i); } }