public void NullIsValid() { var attr = new AbsoluteUriAttribute(); Assert.True(attr.IsValid(null)); }
public void Valid() { var attr = new AbsoluteUriAttribute(); Assert.True(attr.IsValid("https://myserver.com/ab/cd")); }
public void Empty() { var attr = new AbsoluteUriAttribute(); Assert.True(attr.IsValid(string.Empty)); }
public void Invalid() { var attr = new AbsoluteUriAttribute(); Assert.False(attr.IsValid("ab/cd")); }