示例#1
0
        public void WeakEtag()
        {
            ETagBuilder b = CreateBuilder();

            b.Set("\"myetag\"", true);
            Assert.Equal("W/\"myetag\"", b.Build());
        }
示例#2
0
        public void SimpleEtag()
        {
            ETagBuilder b = CreateBuilder();

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

            b.Reset();
            Assert.Null(b.Build());
        }