コード例 #1
0
        private static void CheckInvalidGetContentRangeLength(string input, int startIndex)
        {
            object result = null;

            Assert.Equal(0, ContentRangeHeaderValue.GetContentRangeLength(input, startIndex, out result));
            Assert.Null(result);
        }
コード例 #2
0
        private static void CallGetContentRangeLength(string input, int startIndex, int expectedLength,
                                                      out ContentRangeHeaderValue result)
        {
            object temp = null;

            Assert.Equal(expectedLength, ContentRangeHeaderValue.GetContentRangeLength(input, startIndex, out temp));
            result = temp as ContentRangeHeaderValue;
        }