public void When_element_in_chain_of_arrays_requested_return_count_of_all_values(string expression, double expected)
        {
            var found = JSONQuery.GetCount(JsonTestData, expression);

            Assert.AreEqual(expected, found);
        }
Exemple #2
0
        public void When_root_node_begins_with_arrays_return_count_of_all_values(string expression, double expected)
        {
            var found = JSONQuery.GetCount(JsonTestData, expression);

            Assert.AreEqual(expected, found);
        }
Exemple #3
0
    public static int Count(string jsonData, string expression)
    {
        var count = JSONQuery.GetCount(jsonData, expression);

        return(count);
    }