public void GradesAgent_GetGradeCoefficient_TestCases(int weekOfTheReporting, decimal expectedCoefficient) { // Act var actualCoefficient = GradesAgent.GetGradeCoefficient(weekOfTheReporting); // Assert Assert.AreEqual(expectedCoefficient, actualCoefficient); }
public void GradesAgent_GetGradeCoefficient_ReturnsMaximumCoefficient() { // Arrange var maximumCoefficient = 1.2m; // Act var actualCoefficient = GradesAgent.GetGradeCoefficient(1); // Assert Assert.AreEqual(maximumCoefficient, actualCoefficient); }
public void GradesAgent_GetGradeCoefficient_ReturnsLastNonZeroCoefficient() { // Arrange var minimumCoefficient = 0.2m; // Act var actualCoefficient = GradesAgent.GetGradeCoefficient(11); // Assert Assert.AreEqual(minimumCoefficient, actualCoefficient); }
public void GradesAgent_GetGradeCoefficient_ReturnsMinimumCoefficient() { // Arrange var minimumCoefficient = decimal.Zero; // Act var actualCoefficient = GradesAgent.GetGradeCoefficient(12); // Assert Assert.AreEqual(minimumCoefficient, actualCoefficient); }
public void GradesAgent_GetGradeCoefficient_Returns13WeekCoeff() { // Act GradesAgent.GetGradeCoefficient(13); }
public void GradesAgent_GetGradeCoefficient_ThrowsExceptionIfMonthNumberIsIncorrect() { // Act var actualCoefficient = GradesAgent.GetGradeCoefficient(60); }