Exemplo n.º 1
0
            public void WhenBreachNameSupplied_ThenReturnUriWithBreachName()
            {
                var result = HibpUriFactory.CreateBreachSiteByNameUri("000webhost");

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