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

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