Exemple #1
0
        public void Report_OnSimpleExerciseTree_ProducesWellFormedReportK()
        {
            var    rr       = new ReportFormatter();
            string actual   = rr.CreateReport(ExerciseTestData.Exercises["simple"]);
            string expected = Utils.GetResourceAsString(Constants.ReportSimpleResource);

            Assert.Equal(expected, actual);
        }
Exemple #2
0
        public void WriteReport(ExerciseObjectTree exerciseObjectTree)
        {
            string markdown = reportFormatter.CreateReport(exerciseObjectTree);

            reportFileHandler.WriteFile(markdown);
        }