示例#1
0
        public void GntRawTest1()
        {
            var target = new NuGetComponent(new Soba(), ".");

            Assert.Throws <PMLevelException>(() =>
                                             target.Eval("[NuGet gnt.raw()]")
                                             );

            Assert.ThrowsAny <Exception>(() =>
                                         // should be any exception from gnt.core as normal behavior
                                         target.Eval("[NuGet gnt.raw(\"the is not a correct command\")]")
                                         );
        }
示例#2
0
        public void GntTest1()
        {
            var target = new NuGetComponent(new Soba(), ".");

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[NuGet gnt]")
                                                   );

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[NuGet gnt()]")
                                                   );

            Assert.Throws <IncorrectNodeException>(() =>
                                                   target.Eval("[NuGet gnt.NotRealNode]")
                                                   );
        }
示例#3
0
        public void ParseTest1()
        {
            var target = new NuGetComponent(new Soba(), ".");

            Assert.Throws <SubtypeNotFoundException>(() =>
                                                     target.Eval("[NuGet NotRealSubtype.check]")
                                                     );
        }