public void ChangePageAuthority_ThrowExpection_WhenValueIs0() { Exception expectedExcetpion = null; try { website.ChangePageAuthority(0); } catch (Exception ex) { expectedExcetpion = ex; } Assert.IsNotNull(expectedExcetpion); }
public void ChangePageAuthority_ThrowExpection_WhenSumValueIsBiggerThan100() { website = new Website("tak.com", "fajna", 20, 99, 99); website.ChangePageAuthority(10); Assert.AreEqual(99, website.PageAuthority); }