public void CalCulatorSuccess(int score, string expectedResult) { var gradeCalculator = new GradeCalculator(); var actualResult = gradeCalculator.CalculateGrade(score); actualResult.Should().Be(expectedResult); }
public object Grade(int score) { var gradeCalculator = new GradeCalculator(); var grade = gradeCalculator.CalculateGrade(score); return(new { score = score, grade = grade }); }