예제 #1
0
        private static Slide GenerateSlideFromFile(string path)
        {
            var file = new FileInfo(path);

            return(SlideParser.ParseSlide(
                       file,
                       new SlideInfo(new Unit(new UnitSettings(), file.Directory), file, 0),
                       file.Directory, CourseSettings.DefaultSettings));
        }
예제 #2
0
        private static Slide GenerateSlide(string name)
        {
            var dir = new DirectoryInfo(@".\tests\stub");

            return(SlideParser.ParseSlide(
                       new FileInfo(@".\tests\" + name),
                       new SlideInfo(new Unit(new UnitSettings(), dir), dir.GetFile(name), 0),
                       dir, CourseSettings.DefaultSettings));
        }