private void CheckInvalidParse(string input) { Assert.Throws <FormatException>(() => CacheControlHeaderValue.Parse(input)); }
private void CheckValidParse(string input, CacheControlHeaderValue expectedResult) { var result = CacheControlHeaderValue.Parse(input); Assert.Equal(expectedResult, result); }