public void ValidInputForGradeConversion(int percentage, int expected) { IGradeSystem gradeSystem = new GradeSystem(); gradeSystem.ToGrade(percentage); Assert.Equal(expected, gradeSystem.Result); }
public void OutOfRangeForGradeConversionExpectingArgumentException(int percentage) { IGradeSystem gradeSystem = new GradeSystem(); Assert.Throws <ArgumentException>(() => { gradeSystem.ToGrade(percentage); }); }