public void TestFunction() { var groupBy = GroupBy.Function("this.age >= 21"); string expected = "new BsonJavaScript(\"this.age >= 21\")"; Assert.AreEqual(expected, groupBy.ToString()); }
public void TestFunction() { var groupBy = GroupBy.Function("this.age >= 21"); string expected = "this.age >= 21"; Assert.AreEqual(expected, groupBy.ToString()); }