Beispiel #1
0
        public void ReadSettings_FromValidFile_ReturnsAllAssessmentSectionSettings()
        {
            // Setup
            var reader = new AssessmentSectionSettingsReader();

            // Call
            AssessmentSectionSettings[] settingDefinitions = reader.ReadSettings();

            // Assert
            Assert.AreEqual(237, settingDefinitions.Length);
            AssessmentSectionSettings settings = settingDefinitions[1];

            Assert.AreEqual("1-2", settings.AssessmentSectionId);
            Assert.AreEqual(2.0, settings.N);
            Assert.IsFalse(settings.IsDune);

            settings = settingDefinitions[2];
            Assert.AreEqual("2-1", settings.AssessmentSectionId);
            Assert.AreEqual(3.0, settings.N);
            Assert.IsTrue(settings.IsDune);
        }
        private void ReadAssessmentSectionSettings()
        {
            var reader = new AssessmentSectionSettingsReader();

            settings = reader.ReadSettings();
        }