Ejemplo n.º 1
0
        public void Where_ByLong()
        {
            var input = new List <Dictionary <string, object> >
            {
                new Dictionary <string, object> {
                    { "Id", (long)1 }
                },
                new Dictionary <string, object> {
                    { "Id", (long)2 }
                }
            };
            var output = RockFilters.Where(input, "Id", ( int )1, "equal");

            Assert.That.IsTrue(((List <object>)output).Count == 1);
        }