public void QueryOptionsHeaderMinException()
 {
     Assert.Throws <ArgumentException>(() =>
     {
         var customHeaders = HeaderFormatter.SforceQueryOptions(0);
     });
 }
        public void QueryOptionsHeader()
        {
            KeyValuePair <string, string> header = HeaderFormatter.SforceQueryOptions(1000);

            string result = string.Format("{0}: {1}", header.Key, header.Value);

            Assert.Equal("Sforce-Query-Options: batchSize=1000", result);
        }
        public void QueryOptionsHeader()
        {
            Dictionary <string, string> customHeaders = HeaderFormatter.SforceQueryOptions(1000);

            Assert.Single(customHeaders);

            var header = customHeaders.First();

            string result = string.Format("{0}: {1}", header.Key, header.Value);

            Assert.Equal("Sforce-Query-Options: batchSize=1000", result);
        }