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));
        }
        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));
        }