System.Net.Http.Tests.HttpContentHeadersTest.ContentRange_UseAddMethod_AddedValueCanBeRetrievedUsingProperty C# (CSharp) Method

ContentRange_UseAddMethod_AddedValueCanBeRetrievedUsingProperty() private method

        public void ContentRange_UseAddMethod_AddedValueCanBeRetrievedUsingProperty()
        {
            _headers.TryAddWithoutValidation("Content-Range", "custom 1-2/*");

            ContentRangeHeaderValue value = new ContentRangeHeaderValue(1, 2);
            value.Unit = "custom";

            Assert.Equal(value, _headers.ContentRange);
        }
HttpContentHeadersTest