void CanSetEveryValue()
        {
            var args = new IndexCollectionArgs()
            {
                Count         = 100,
                Offset        = 100,
                Search        = "some_unchecked_string",
                SortDirection = SortDirection.Descending,
                SortKey       = "some_unchecked_string",
                SortMode      = SortMode.Alphabetic,
                Summarize     = true
            };

            Assert.Equal("count=100; offset=100; search=some_unchecked_string; sort_dir=desc; sort_key=some_unchecked_string; sort_mode=alpha; summarize=t", args.ToString());

            Assert.Equal(new List <Argument>()
            {
                new Argument("count", "100"),
                new Argument("offset", "100"),
                new Argument("search", "some_unchecked_string"),
                new Argument("sort_dir", "desc"),
                new Argument("sort_key", "some_unchecked_string"),
                new Argument("sort_mode", "alpha"),
                new Argument("summarize", "t")
            },
                         args);
        }
        void CanConstruct()
        {
            // Checked against http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTindex#GET_data.2Findexes

            IndexCollectionArgs args = new IndexCollectionArgs();

            Assert.Equal("count=30; offset=0; search=null; sort_dir=asc; sort_key=name; sort_mode=auto; summarize=f", args.ToString());
            Assert.Equal(0, ((IEnumerable <Argument>)args).Count());
        }