Ejemplo n.º 1
0
        public void When_element_not_able_to_aggregated_return_null(string expression)
        {
            var foundMaxValue = JSONQuery.GetMax(JsonTestData, expression);
            var foundMinValue = JSONQuery.GetMin(JsonTestData, expression);

            Assert.IsNull(foundMaxValue, "Max value calculated");
            Assert.IsNull(foundMinValue, "Min value calculated");
        }
Ejemplo n.º 2
0
        public void When_element_in_chain_of_arrays_requested_return_min_of_all_values(string expression, object expected)
        {
            var found = JSONQuery.GetMin(JsonTestData, expression);

            Assert.AreEqual(expected, found);
        }