private void CheckInvalidTryParse(string input) { StringWithQualityHeaderValue result = null; Assert.False(StringWithQualityHeaderValue.TryParse(input, out result)); Assert.Null(result); }
private void CheckValidTryParse(string input, StringWithQualityHeaderValue expectedResult) { StringWithQualityHeaderValue result = null; Assert.True(StringWithQualityHeaderValue.TryParse(input, out result)); Assert.Equal(expectedResult, result); }