コード例 #1
0
        public void WithOrientation_Settings_Should_Use_Correct_Argument_Provided_In_MarkdownPdfRunnerSettings(MarkdownPdfOrientation orientation)
        {
            fixture.RunnerSettings = s => s.WithOrientation(orientation);
            var result = fixture.Run();

            result.Args.ShouldBe($"{MarkdownPdfOptions.Orientation} {orientation}");
        }
 public static MarkdownPdfRunnerSettings WithOrientation(this MarkdownPdfRunnerSettings settings, MarkdownPdfOrientation orientation)
 {
     settings.Orientation = orientation;
     return(settings);
 }