public void WhenBreachNameSupplied_ThenReturnUriWithBreachName() { var result = HibpUriFactory.CreateBreachSiteByNameUri("000webhost"); Assert.That(result.ToString(), Is.EqualTo(ExpectedUrl() + "/000webhost")); }
public void WhenBreachNameIsNull_ThenThrowException() { Assert.Throws <ArgumentException>(() => HibpUriFactory.CreateBreachSiteByNameUri(null)); }
public void WhenBreachNameIsEmpty_ThenThrowException() { Assert.Throws <ArgumentException>(() => HibpUriFactory.CreateBreachSiteByNameUri(string.Empty)); }