public void ShouldInitializeItselfWithATraditionalGradingScale()
        {
            var expectedGradeScale = new Dictionary <char, Tuple <int, int> >(5)
            {
                { 'A', new Tuple <int, int>(90, 100) },
                { 'B', new Tuple <int, int>(80, 89) },
                { 'C', new Tuple <int, int>(70, 79) },
                { 'D', new Tuple <int, int>(60, 69) },
                { 'F', new Tuple <int, int>(0, 59) }
            };

            var sut = new TraditionalGradeScale();

            Assert.That(sut.Scale, Is.EqualTo(expectedGradeScale));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Class"/> class.
 /// </summary>
 public Class()
 {
     Students = new StudentList();
     Scale    = new TraditionalGradeScale();
 }