Пример #1
0
        public void SimpleEtag()
        {
            ETagBuilder b = CreateBuilder();

            b.Set("\"myetag\"");
            Assert.Equal("\"myetag\"", b.Build());

            b.Reset();
            Assert.Null(b.Build());
        }
Пример #2
0
        public void WeakEtag()
        {
            ETagBuilder b = CreateBuilder();

            b.Set("\"myetag\"", true);
            Assert.Equal("W/\"myetag\"", b.Build());
        }