Beispiel #1
0
 public void WhenEmailAddressIsEmpty_ThenThrowException()
 {
     Assert.Throws <ArgumentException>(() => HibpUriFactory.CreateAccountPastesUri(string.Empty));
 }
Beispiel #2
0
            public void WhenEmailAddressSupplied_ThenReturnUriWithEmailAddress()
            {
                var result = HibpUriFactory.CreateAccountPastesUri(EmailAddress);

                Assert.That(result.ToString(), Is.EqualTo($"{UrlBase}{ServicePath}{_emailAddressUrlEncoded}"));
            }
Beispiel #3
0
 public void WhenEmailAddressIsNull_ThenThrowException()
 {
     Assert.Throws <ArgumentException>(() => HibpUriFactory.CreateAccountPastesUri(null));
 }