public void ChangeDomainAuthority_ThrowExpection_WhenValueIs0() { Exception expectedExcetpion = null; try { website.ChangeDomainAuthority(0); } catch (Exception ex) { expectedExcetpion = ex; } Assert.IsNotNull(expectedExcetpion); }
public void ChangeDomainAuthority_ThrowExpection_WhenSumValueIsBiggerThan100() { website = new Website("tak.com", "fajna", 20, 20, 99); website.ChangeDomainAuthority(10); Assert.AreEqual(99, website.DomainAuthority); }