public void can_set_uri_without_http_and_return_invalid() { var cruiseAddress = new CruiseAddress { Uri = new Uri("httx://not_valid") }; Assert.That(cruiseAddress.IsValid, Is.False); }
public void can_set_uri_to_emptystring_and_return_invalid() { var cruiseAddress = new CruiseAddress { Uri = null }; Assert.That(cruiseAddress.IsValid, Is.False); }
public void can_set_valid_uri_and_return_valid() { var cruiseAddress = new CruiseAddress { Uri = new Uri("http://valid") }; Assert.That(cruiseAddress.IsValid, Is.True); }