public void StaticCommandStringArgs() { Assert.IsTrue(TerminalParser.TryParse("CommandStringArg ABC".AsSpan(), _Registries, out var Result)); Assert.IsNull(Result.TypeSet); Assert.IsNull(Result.Instance); Assert.IsNotNull(Result.CommandSet); Assert.AreEqual("Command", Result.CommandSet.Name); Assert.IsTrue(Result.Arguments.IsEmpty); }
public void StaticIntVariableGet() { Assert.IsTrue(TerminalParser.TryParse("IntVariable".AsSpan(), _Registries, out var Result)); Assert.IsNull(Result.TypeSet); Assert.IsNull(Result.Instance); Assert.IsNotNull(Result.Variable); Assert.AreEqual("IntVariable", Result.Variable.Name); Assert.IsTrue(Result.Arguments.IsEmpty); }