public void ParsesEtag(string value, string expectedValue)
        {
            ETag tag = ETag.Parse(value);

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