コード例 #1
0
 public void Return_Null_If_The_Address_Is_Invalid(string input)
 {
     Assert.That(HttpContextControllerInformationProvider.MatchIPAddress(input), Is.Null);
 }
コード例 #2
0
        public void Return_The_Valid_Address(string inputString, string expectedOutput)
        {
            var result = HttpContextControllerInformationProvider.MatchIPAddress(inputString);

            Assert.That(result, Is.EqualTo(expectedOutput));
        }