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\")]") ); }
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]") ); }
public void ParseTest1() { var target = new NuGetComponent(new Soba(), "."); Assert.Throws <SubtypeNotFoundException>(() => target.Eval("[NuGet NotRealSubtype.check]") ); }