Esempio n. 1
0
            can_use_an_alternate_color_palette_with_console_adapter(string source, string expectedAnsiCode)
            {
                var customPalette      = new ColorPaletteMonokai();
                var ansiConsoleAdapter = new AnsiConsoleAdapter(customPalette);
                var text = TextStyleParser.Print(source, ansiConsoleAdapter);

                Check.That(text).IsEqualTo(expectedAnsiCode);
            }
Esempio n. 2
0
            can_use_an_alternate_color_palette_with_html_adapter(string source, string expectedHtml)
            {
                var customPalette = new ColorPaletteMonokai();
                var htmlAdapter   = new BasicHtmlAdapter(customPalette);
                var text          = TextStyleParser.Print(source, htmlAdapter);

                Check.That(text).IsEqualTo(expectedHtml);
            }
Esempio n. 3
0
            can_generate_printer_for_reuse_with_custom_adapter_and_palette(string source, string expectedAnsiCode)
            {
                var palette = new ColorPaletteMonokai();
                var adapter = new BasicHtmlAdapter(palette);
                var printerDefaultConsole = TextStyleGenerator.GeneratePrinter(adapter);

                var text = printerDefaultConsole(source);

                Check.That(text).IsEqualTo(expectedAnsiCode);
            }//@warning:orange,bold;