Пример #1
0
        public void PandacInit_JustCallPandoc()
        {
            var fixture = new PandocAliasesFixture();

            fixture.Settings = null;
            var actual = fixture.Run();

            actual.Args.ShouldBe("");
        }
Пример #2
0
        public void PandacWithSettings_UsePassedSettings()
        {
            var fixture = new PandocAliasesFixture();

            fixture.Settings = new PandocSettings()
            {
                From           = Enums.From.Commonmark,
                To             = Enums.To.AsciiDoc,
                FailIfWarnings = true
            };
            var actual = fixture.Run();

            actual.Args.ShouldContain("--from=commonmark");
            actual.Args.ShouldContain("--to=asciidoc");
            actual.Args.ShouldContain("--fail-if-warnings");
        }