예제 #1
0
        public void MultipleEncodings()
        {
            ContentEncodingBuilder b = new ContentEncodingBuilder();

            b.Add(ContentEncodingType.Gzip);
            b.Add(ContentEncodingType.Deflate);
            Assert.Equal("gzip, deflate", b.Build());

            b.Reset();
            Assert.Null(b.Build());
        }
예제 #2
0
        public void SingleEncoding()
        {
            ContentEncodingBuilder b = new ContentEncodingBuilder();

            b.Add(ContentEncodingType.Gzip);
            Assert.Equal("gzip", b.Build());
        }