public void ParseObjectNonParsedTest() { CMParseResult cmd = new CMParseResult { ArgumentName = "inputValue" }; NonParsedResult.Argument2 = "arg2"; NonParsedResult inp = new NonParsedResult { Argument1 = "arg1" }; _context.SaveResult("inputValue", inp); cmd.Do(_context); Assert.AreEqual("arg1", _context.GetResult("inputValue.Argument1")); Assert.AreEqual(null, _context.GetResult("inputValue.Argument2")); }
public void ParseObjectFieldsTest() { CMParseResult cmd = new CMParseResult { ArgumentName = "inputValue" }; _context.SaveResult("inputValue", new FieldsResult { Argument1 = "arg1", Argument2 = "arg2" }); cmd.Do(_context); Assert.AreEqual("arg1", _context.GetResult("inputValue.Argument1")); Assert.AreEqual("arg2", _context.GetResult("inputValue.Argument2")); }