public void InitializeTest()
 {
     PdfReportCardParser target = new PdfReportCardParser(); // TODO: Initialize to an appropriate value
     SchoolPeriod schoolPeriod = null; // TODO: Initialize to an appropriate value
     IEnumerable<GradingTerm> gradingTerms = null; // TODO: Initialize to an appropriate value
     IEnumerable<GradingStandard> gradingStandards = null; // TODO: Initialize to an appropriate value
     byte[] templateData = null; // TODO: Initialize to an appropriate value
     target.Initialize(schoolPeriod, gradingTerms, gradingStandards, templateData);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
コード例 #2
0
        /*private static MemoryStream ProcessReportCard(SchoolPeriod schoolPeriod, IEnumerable<GradingStandard> gradingStandards, ReportCardTemplate template, IEnumerable<Student> students)
        {
            var parser = GetParser(template.FileType);

            parser.Initialize(schoolPeriod, schoolPeriod.GradingTerms, gradingStandards, template.TemplateData);
            return parser.Process(students);
        }*/
        private static IReportCardParser GetParser(ReportCardTemplateFileType fileType)
        {
            IReportCardParser parser = null;

            switch (fileType)
            {
                case ReportCardTemplateFileType.Docx:
                    parser = new DocxReportCardParser();
                    break;
                case ReportCardTemplateFileType.Pdf:
                    parser = new PdfReportCardParser();
                    break;
            }

            return parser;
        }
 public void ProcessTest()
 {
     PdfReportCardParser target = new PdfReportCardParser(); // TODO: Initialize to an appropriate value
     IEnumerable<ClassEnrollment> enrollments = null; // TODO: Initialize to an appropriate value
     MemoryStream expected = null; // TODO: Initialize to an appropriate value
     MemoryStream actual;
     actual = target.Process(enrollments);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void PdfReportCardParserConstructorTest()
 {
     PdfReportCardParser target = new PdfReportCardParser();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }