示例#1
0
        private static void CheckInvalidWarningViaLength(string input, int startIndex)
        {
            object result = null;

            Assert.Equal(0, WarningHeaderValue.GetWarningLength(input, startIndex, out result));
            Assert.Null(result);
        }
示例#2
0
        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);
        }