System.Net.Http.Tests.HttpContentHeadersTest.ContentLocation_ReadAndWriteProperty_ValueMatchesPriorSetValue C# (CSharp) Метод

ContentLocation_ReadAndWriteProperty_ValueMatchesPriorSetValue() приватный Метод

private ContentLocation_ReadAndWriteProperty_ValueMatchesPriorSetValue ( ) : void
Результат void
        public void ContentLocation_ReadAndWriteProperty_ValueMatchesPriorSetValue()
        {
            Assert.Null(_headers.ContentLocation);

            Uri expected = new Uri("http://example.com/path/");
            _headers.ContentLocation = expected;
            Assert.Equal(expected, _headers.ContentLocation);

            _headers.ContentLocation = null;
            Assert.Null(_headers.ContentLocation);
            Assert.False(_headers.Contains("Content-Location"));
        }
HttpContentHeadersTest