Ejemplo n.º 1
0
        public void KyauowHcguit()
        {
            var str = "E:\\上传\\博客\\README.md";

            using (StreamReader stream = new StreamReader(str))
            {
                var mdmetaFile = new MdmetaFile(stream);

                var qzgTnnknwsMdmetaXsawJnfzmr = new QzgTnnknwsMdmetaXsawJnfzmr();
                var hzvhPaurvmoz = new HzvhPaurvmoz();
                var separatorMdmetaXsawJnfzmr = new SeparatorMdmetaXsawJnfzmr(new Excerpt(null, "<!--more-->"));
                var toejxjwXywn     = new ToejxjwXywn();
                var licenseQahvmudf = new LicenseQahvmudf();
                var dwwHdwtgcqjh    = new DwwHdwtgcqjh();
                var kvhoSex         = new DsfuDewuwwhc();

                mdmetaFile.MdmetaXsawJnfzmrs = new List <MdmetaXsawJnfzmr>()
                {
                    qzgTnnknwsMdmetaXsawJnfzmr,
                    separatorMdmetaXsawJnfzmr,
                    toejxjwXywn,
                    hzvhPaurvmoz,
                    licenseQahvmudf,
                    dwwHdwtgcqjh,
                    kvhoSex,
                };

                var tzkjbthKlk = mdmetaFile.Read();
            }
        }
Ejemplo n.º 2
0
        public void XwnibaijxMoyddnzkp()
        {
            var fileInfo =
                new FileInfo(Path.Combine(new FileInfo(Assembly.GetExecutingAssembly().Location).Directory.FullName,
                                          "如何使用本模板搭建博客.md"));
            var    stream      = new StreamReader(fileInfo.OpenRead());
            string str         = "https://lindexi.github.io";
            var    toejxjwXywn = new ToejxjwXywn();
            var    hvjEthpiaca = new HvjEthpiaca();

            toejxjwXywn.HvjEthpiaca = hvjEthpiaca;
            toejxjwXywn.Read(new NghtsBdlbthhur(stream, str));
            Console.WriteLine(toejxjwXywn.HvjEthpiaca.CreateTime + " " + toejxjwXywn.HvjEthpiaca.Time);
            Assert.AreEqual(toejxjwXywn.ReadCsfLvi, false);
        }