public void CalculateThrowsWithInvalidGrade(int numberGrade) { // Arrange var sut = new GradeCalculator(); // Act / Assert Assert.Throws <ArgumentOutOfRangeException>(() => sut.Calculate(numberGrade)); }
public void CalculateReturnsApproprateGrade(int numberGrade, LetterGrade letterGrade) { // Arrange var sut = new GradeCalculator(); // Act var result = sut.Calculate(numberGrade); // Assert Assert.Equal(letterGrade, result); }