public void ValidUrl_GoodFormat_ShouldReturTrue()
        {
            // arrange
            var url = "https://www.facebook.com";
            var validator = new UrlValidation();
            var expected = true;

            // act
            var actual = validator.ValidUrl(url);

            // assert
            Assert.AreEqual(actual, expected);
        }
        public void InvalidUrl2_BadFormat_ShouldReturFalse()
        {
            // arrange
            var url = "facebook";
            var validator = new UrlValidation();
            var expected = false;

            // act
            var actual = validator.ValidUrl(url);

            // assert
            Assert.AreEqual(actual, expected);
        }
 public UrlParser()
 {
     urlValidator = new UrlValidation();
 }
Esempio n. 4
0
 public UrlParser()
 {
     urlValidator = new UrlValidation();
 }