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

            Assert.AreEqual(expected, groupBy.ToString());
        }
Exemple #2
0
        public void TestFunction()
        {
            var    groupBy  = GroupBy.Function("this.age >= 21");
            string expected = "this.age >= 21";

            Assert.AreEqual(expected, groupBy.ToString());
        }