public void AddScriptAndAddParamsAndBuildQuery() { const string scriptA = ".test"; const string scriptB = ".this"; const string param0 = "_P0"; const string param0Val = "now"; const string scriptC = ".path(" + param0 + ")"; const string script = "g.V" + scriptA + scriptB + scriptC + ";"; var d = new TravPathData(""); d.AddScript(scriptA); d.AddScript(scriptB); d.AddParam(param0Val); d.AddScript(scriptC); IWeaverQuery result = d.BuildQuery(); Assert.NotNull(result, "Result should be filled."); Assert.AreEqual(script, result.Script, "Incorrect script."); Assert.NotNull(result.Params, "Params should be filled."); Assert.AreEqual(1, result.Params.Count, "Incorrect Params count."); Assert.AreEqual(param0Val, result.Params[param0].RawText, "Incorrect Param[0] RawText."); }