Esempio n. 1
0
        public void IsImageUrl_NotValidImageURL_ReturnsTrue()
        {
            string url = "google.com";

            var result = IsImageUrlAttribute.IsImageUrl(url);

            Assert.IsFalse(result);
        }
Esempio n. 2
0
        public void IsImageUrl_ValidImageURL_ReturnsTrue()
        {
            string url = "https://www.at-languagesolutions.com/en/wp-content/uploads/2016/06/http-1.jpg";

            var result = IsImageUrlAttribute.IsImageUrl(url);

            Assert.IsTrue(result);
        }