public Document Eval(CodeWScope cw) { Document cmd = new Document().Append("$eval", cw); return SendCommand(cmd); }
public void TestEvalNoScope() { Document result = db.Eval("function(){return 3;}"); Assert.AreEqual(3, result["retval"]); }