public void GetRating_NegativeOne_ThrowsInvalidArgumentException() { var age = new AgeModifer(); Assert.Throws<ArgumentException>(() => age.GetRating(-1)); }
public void GetRating_ReturnsCorrectRating(int age, double expected) { AgeModifer ageModifier = new AgeModifer(); var modifier = ageModifier.GetRating(age); Assert.AreEqual(expected,modifier); }
public void GetRating_71_ThrowsDeclinedException() { var age = new AgeModifer(); Assert.Throws<DeclinedException>(() => age.GetRating(71)); }