protected bool BeValidHttpUrlWhenSet <TDto>(TDto dto, string value) => !(!string.IsNullOrWhiteSpace(value) && !UriUtils.IsValidHttpUrl(value));
public void IsValidHttpUrl_With_Incomplete_Url_Returns_False() { UriUtils.IsValidHttpUrl("www.google.com").ShouldBeFalse(); }
public void IsValidHttpUrl_With_Null_Returns_False() { UriUtils.IsValidHttpUrl(null).ShouldBeFalse(); }
public void IsValidHttpUrl_With_Empty_String_Returns_False() { UriUtils.IsValidHttpUrl(string.Empty).ShouldBeFalse(); }
public void IsValidHttpUrl_With_Https_Url_Returns_True() { UriUtils.IsValidHttpUrl("https://www.google.com").ShouldBeTrue(); }