Пример #1
0
        private static void CheckInvalidGetViaLength(string input, int startIndex)
        {
            object result = null;

            Assert.Equal(0, ViaHeaderValue.GetViaLength(input, startIndex, out result));
            Assert.Null(result);
        }
Пример #2
0
        private static void CheckGetViaLength(string input, int startIndex, int expectedLength,
                                              ViaHeaderValue expectedResult)
        {
            object result = null;

            Assert.Equal(expectedLength, ViaHeaderValue.GetViaLength(input, startIndex, out result));
            Assert.Equal(expectedResult, result);
        }