private static void CheckInvalidGetNameValueWithParametersLength(string input, int startIndex) { object result = null; Assert.Equal(0, NameValueWithParametersHeaderValue.GetNameValueWithParametersLength(input, startIndex, out result)); Assert.Null(result); }
private static void CallGetNameValueWithParametersLength(string input, int startIndex, int expectedLength, out NameValueWithParametersHeaderValue result) { object temp = null; Assert.Equal(expectedLength, NameValueWithParametersHeaderValue.GetNameValueWithParametersLength(input, startIndex, out temp)); result = temp as NameValueWithParametersHeaderValue; }