public void CanReadNumberOfStudents()
        {
            List<SchoolTestResult> result = new AssessmentReader().parse(data);

            Assert.AreEqual(95, result[0].NumberOfStudents);
            Assert.AreEqual(93, result[1].NumberOfStudents);
        }
        public void CanReadPassPercentage()
        {
            List<SchoolTestResult> result = new AssessmentReader().parse(data);

            Assert.AreEqual(68, result[0].MetExpectations);
            Assert.AreEqual(67, result[1].MetExpectations);
        }
        public void CanReadAverageScore()
        {
            List<SchoolTestResult> result = new AssessmentReader().parse(data);

            Assert.AreEqual(58, result[0].AverageScore);
            Assert.AreEqual(58, result[1].AverageScore);
        }
        public void CanReadAssessmentType()
        {
            List<SchoolTestResult> result = new AssessmentReader().parse(data);

            Assert.AreEqual("Math", result[0].AssessmentType);
            Assert.AreEqual("Math", result[1].AssessmentType);
        }
        public void ReadsTwoYears()
        {
            List<SchoolTestResult> result = new AssessmentReader().parse(twoYears);

            Assert.AreEqual(2, result.Count);

            Assert.AreEqual("2012", result[0].AssessmentYear);
            Assert.AreEqual("2013", result[1].AssessmentYear);

            Assert.AreEqual(7, result[0].NumberOfStudents);
            Assert.AreEqual(10, result[1].NumberOfStudents);

            Assert.AreEqual(45, result[0].AverageScore);
            Assert.AreEqual(64, result[1].AverageScore);

            Assert.AreEqual(23, result[0].MetExpectations);
            Assert.AreEqual(98, result[1].MetExpectations);
        }
        public void CanReadTheSchoolName()
        {
            List<SchoolTestResult> result = new AssessmentReader().parse(text);

            Assert.AreEqual("Bluefield", result[0].SchoolName);
        }
 public void CanReadSchoolType()
 {
     List<SchoolTestResult> result = new AssessmentReader().parse(text);
     Assert.AreEqual("Secondary", result[0].SchoolType);
 }
 public void CanReadClassName()
 {
     List<SchoolTestResult> result = new AssessmentReader().parse(text);
     Assert.AreEqual("521A", result[0].ClassName);
 }
 public void CanReadAssessmentYear()
 {
     List<SchoolTestResult> result = new AssessmentReader().parse(text);
     Assert.AreEqual("2015", result[0].AssessmentYear);
 }
        public void ReturnsTwoRecords()
        {
            List<SchoolTestResult> result = new AssessmentReader().parse(data);

            Assert.AreEqual(2, result.Count);
        }
        public void ReturnsAListOfObjects()
        {
            List<SchoolTestResult> result = new AssessmentReader().parse(text);

            Assert.AreEqual(1, result.Count);
        }
        public void CanReadTheSchoolName()
        {
            List<SchoolTestResult> result = new AssessmentReader().parse(text);

            Assert.AreEqual("École La-Belle-Cloche", result[0].SchoolName);
        }
        public void CanReadAssessmentType()
        {
            List<SchoolTestResult> result = new AssessmentReader().parse(text);

            Assert.AreEqual("Literacy", result[0].AssessmentType);
        }