System.UriExtensionsTests.IsHttp_DetectsHttpUris C# (CSharp) Метод

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

private IsHttp_DetectsHttpUris ( string input, bool expected ) : void
input string
expected bool
Результат void
        public void IsHttp_DetectsHttpUris(string input, bool expected)
        {
            // Arrange
            Uri address = new Uri(input, UriKind.RelativeOrAbsolute);

            // Act
            bool actual = address.IsHttp();

            // Assert
            Assert.Equal(expected, actual);
        }