Esempio n. 1
0
        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"));
        }
Esempio n. 2
0
        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"));
        }