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