Beispiel #1
0
        public void RUrlAttributeDisplayValueCorrect()
        {
            var result = new RUrlAttribute().Validate(() => new { Url = "not a url" }, "Url", "Address");

            Assert.IsNotNull(result);
            Assert.IsTrue(result.ErrorMessage.Contains("Address"));
        }
Beispiel #2
0
        public void RUrlAttributeNegative()
        {
            var result = new RUrlAttribute().Validate(() => new { Url = "not a url" }, "Url");

            Assert.IsNotNull(result);
        }
Beispiel #3
0
        public void RUrlAttributeHttpsPositive()
        {
            var result = new RUrlAttribute().Validate(() => new { Url = "https://rvalidate.com " }, "Url");

            Assert.IsNull(result);
        }