Exemplo n.º 1
0
        public void ParsesEtag(string value, string expectedValue)
        {
            ETag tag = ETag.Parse(value);

            Assert.AreEqual(expectedValue, tag.ToString());
            Assert.AreEqual(expectedValue, tag.ToString("G"));
        }
Exemplo n.º 2
0
 public void ThrowsForParseWeakEtag()
 {
     Assert.Throws <NotSupportedException>(() => ETag.Parse("W/\"lalala\""));
 }
Exemplo n.º 3
0
 public void ThrowsForEtagsWithoutQuotes(string value)
 {
     Assert.Throws <ArgumentException>(() => ETag.Parse(value));
 }
Exemplo n.º 4
0
 public void ThrowsForEtagsWithoutQuotes()
 {
     Assert.Throws <ArgumentException>(() => ETag.Parse("lalala"));
 }