private void AssertAreEqualGradeCategories(EAssessmentGrade expectedCategory, double expectedLowerLimit, double expectedUpperLimit, AssessmentSectionCategory assessmentSectionCategory) { Assert.AreEqual(expectedCategory, assessmentSectionCategory.Category); Assert.AreEqual(expectedLowerLimit, assessmentSectionCategory.LowerLimit, 1e-15); Assert.AreEqual(expectedUpperLimit, assessmentSectionCategory.UpperLimit, 1e-15); }
public void ConstructorCallsBaseCorrect() { var upperBoundary = (Probability)(1 / 100.0); var category = AssessmentSectionCategoryGroup.B; var lowerBoundary = (Probability)(1 / 1000.0); var output = new AssessmentSectionCategory(category, lowerBoundary, upperBoundary); Assert.IsNotNull(output); Assert.AreEqual(category, output.CategoryGroup); Assert.AreEqual(lowerBoundary, output.LowerBoundary); Assert.AreEqual(upperBoundary, output.UpperBoundary); }
public void ConstructorPassesArguments() { var upperLimit = new Probability(0.01); var assessmentGrade = EAssessmentGrade.B; var lowerLimit = new Probability(0.001); var category = new AssessmentSectionCategory(assessmentGrade, lowerLimit, upperLimit); Assert.IsNotNull(category); Assert.AreEqual(assessmentGrade, category.Category); Assert.AreEqual(lowerLimit, category.LowerLimit); Assert.AreEqual(upperLimit, category.UpperLimit); }