public void WhenEmailAddressIsEmpty_ThenThrowException() { Assert.Throws <ArgumentException>(() => HibpUriFactory.CreateAccountPastesUri(string.Empty)); }
public void WhenEmailAddressSupplied_ThenReturnUriWithEmailAddress() { var result = HibpUriFactory.CreateAccountPastesUri(EmailAddress); Assert.That(result.ToString(), Is.EqualTo($"{UrlBase}{ServicePath}{_emailAddressUrlEncoded}")); }
public void WhenEmailAddressIsNull_ThenThrowException() { Assert.Throws <ArgumentException>(() => HibpUriFactory.CreateAccountPastesUri(null)); }