System.UriExtensionsTests.IsHttp_DetectsHttpUris C# (CSharp) Method

IsHttp_DetectsHttpUris() private method

private IsHttp_DetectsHttpUris ( string input, bool expected ) : void
input string
expected bool
return 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);
        }