public void IfModifiedSinceHeader()
        {
            DateTimeOffset date = new DateTimeOffset(2015, 3, 23, 0, 0, 0, 0, new TimeSpan(0));

            KeyValuePair <string, string> header = HeaderFormatter.IfModifiedSince(date);

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

            Assert.Equal("If-Modified-Since: Mon, 23 Mar 2015 00:00:00 GMT", result);
        }
        public void IfModifiedSinceHeader()
        {
            DateTimeOffset date = new DateTimeOffset(2015, 3, 23, 0, 0, 0, 0, new TimeSpan(0));

            Dictionary <string, string> customHeaders = HeaderFormatter.IfModifiedSince(date);

            Assert.Single(customHeaders);

            var header = customHeaders.First();

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

            Assert.Equal("If-Modified-Since: Mon, 23 Mar 2015 00:00:00 GMT", result);
        }