private static void CheckInvalidWarningViaLength(string input, int startIndex) { object result = null; Assert.Equal(0, WarningHeaderValue.GetWarningLength(input, startIndex, out result)); Assert.Null(result); }
private static void CheckGetWarningLength(string input, int startIndex, int expectedLength, WarningHeaderValue expectedResult) { object result = null; Assert.Equal(expectedLength, WarningHeaderValue.GetWarningLength(input, startIndex, out result)); Assert.Equal(expectedResult, result); }