Exemplo n.º 1
0
        public void Should_make_query_with_exists_test()
        {
            var i = _F(ClrFilter.Exists("data/firstName/iv"));
            var o = _C("{ 'do.firstName.iv' : { '$exists' : true, '$ne' : null } }");

            Assert.Equal(o, i);
        }
Exemplo n.º 2
0
        public void Should_make_query_with_exists()
        {
            var filter = ClrFilter.Exists("Text");

            AssertQuery("{ 'Text' : { '$exists' : true, '$ne' : null } }", filter);
        }