@@ -34,92 +34,92 @@ protected override void Run()
3434 {
3535 SetKeyboardScanMap ( new DE_Standard ( ) ) ;
3636 Console . ReadLine ( ) ;
37- // Console.Clear();
37+ Console . Clear ( ) ;
3838
39- // Console.WriteLine("Testing Console Enconding");
39+ Console . WriteLine ( "Testing Console Enconding" ) ;
4040
41- // Console.WriteLine($"ConsoleInputEncoding {Console.InputEncoding.BodyName}");
41+ Console . WriteLine ( $ "ConsoleInputEncoding { Console . InputEncoding . BodyName } ") ;
4242
43- // Console.WriteLine($"ConsoleOutputEncoding {Console.OutputEncoding.BodyName}");
43+ Console . WriteLine ( $ "ConsoleOutputEncoding { Console . OutputEncoding . BodyName } ") ;
4444
45- /// * Let's change it in the legacy IBM437 encoding */
46- // Console.InputEncoding = Encoding.GetEncoding(437);
47- // Console.OutputEncoding = Encoding.GetEncoding(437);
45+ /* Let's change it in the legacy IBM437 encoding */
46+ Console . InputEncoding = Encoding . GetEncoding ( 437 ) ;
47+ Console . OutputEncoding = Encoding . GetEncoding ( 437 ) ;
4848
49- // Console.WriteLine($"ConsoleInputEncoding in now {Console.InputEncoding.BodyName}");
50- // Console.WriteLine($"ConsoleOutputEncoding in now {Console.OutputEncoding.BodyName}");
49+ Console . WriteLine ( $ "ConsoleInputEncoding in now { Console . InputEncoding . BodyName } ") ;
50+ Console . WriteLine ( $ "ConsoleOutputEncoding in now { Console . OutputEncoding . BodyName } ") ;
5151
52- // Console.WriteLine("Let's write some accented characters: èòàùì");
53- // Console.WriteLine("Let's print all the CP437 codepage");
52+ Console . WriteLine ( "Let's write some accented characters: èòàùì" ) ;
53+ Console . WriteLine ( "Let's print all the CP437 codepage" ) ;
5454
55- // Sys.Global.mDebugger.SendInternal("");
55+ Sys . Global . mDebugger . SendInternal ( "" ) ;
5656
57- // Console.Write("Ç ü é â ä à å ç ê ë è ï î ì Ä Å\n" +
58- // "É æ Æ ô ö ò û ù ÿ Ö Ü ¢ £ ¥ ₧ ƒ\n" +
59- // "á í ó ú ñ Ñ ª º ¿ ⌐ ¬ ½ ¼ ¡ « »\n" +
60- // "░ ▒ ▓ │ ┤ ╡ ╢ ╖ ╕ ╣ ║ ╗ ╝ ╜ ╛ ┐\n" +
61- // "└ ┴ ┬ ├ ─ ┼ ╞ ╟ ╚ ╔ ╩ ╦ ╠ ═ ╬ ╧\n" +
62- // "╨ ╤ ╥ ╙ ╘ ╒ ╓ ╫ ╪ ┘ ┌ █ ▄ ▌ ▐ ▀\n" +
63- // "α ß Γ π Σ σ µ τ Φ Θ Ω δ ∞ φ ε ∩\n" +
64- // "≡ ± ≥ ≤ ⌠ ⌡ ÷ ≈ ° ∙ · √ ⁿ ² ■ \u00A0\n");
65- //// Console.WriteLine();
57+ Console . Write ( "Ç ü é â ä à å ç ê ë è ï î ì Ä Å\n " +
58+ "É æ Æ ô ö ò û ù ÿ Ö Ü ¢ £ ¥ ₧ ƒ\n " +
59+ "á í ó ú ñ Ñ ª º ¿ ⌐ ¬ ½ ¼ ¡ « »\n " +
60+ "░ ▒ ▓ │ ┤ ╡ ╢ ╖ ╕ ╣ ║ ╗ ╝ ╜ ╛ ┐\n " +
61+ "└ ┴ ┬ ├ ─ ┼ ╞ ╟ ╚ ╔ ╩ ╦ ╠ ═ ╬ ╧\n " +
62+ "╨ ╤ ╥ ╙ ╘ ╒ ╓ ╫ ╪ ┘ ┌ █ ▄ ▌ ▐ ▀\n " +
63+ "α ß Γ π Σ σ µ τ Φ Θ Ω δ ∞ φ ε ∩\n " +
64+ "≡ ± ≥ ≤ ⌠ ⌡ ÷ ≈ ° ∙ · √ ⁿ ² ■ \u00A0 \n " ) ;
65+ //Console.WriteLine();
6666
67- //Console.WriteLine("The following line should appear as a continuos line of '─'");
68- //Console.WriteLine("──────────────────────────────────────────────────────────");
67+ Console . WriteLine ( "The following line should appear as a continuos line of '─'" ) ;
68+ Console . WriteLine ( "──────────────────────────────────────────────────────────" ) ;
69+
70+ Console . ReadKey ( ) ;
71+ Console . WriteLine ( "The next line should be empty" ) ;
72+ Console . WriteLine ( ) ;
73+ Console . WriteLine ( "True follows..." ) ;
74+ Console . WriteLine ( true ) ;
75+ Console . WriteLine ( "The letter 'A'" ) ;
76+ Console . WriteLine ( 'A' ) ;
77+ char [ ] charBuffer = new char [ ] { 'A' , 'B' , 'C' } ;
78+ Console . WriteLine ( "Then ABC" ) ;
79+ Console . WriteLine ( charBuffer ) ;
80+ Console . WriteLine ( "...42.42" ) ;
81+ Console . WriteLine ( 42.42 ) ;
82+ Console . WriteLine ( "...42.42 (float)" ) ;
83+ Console . WriteLine ( 42.42f ) ;
84+ Console . WriteLine ( "...42" ) ;
85+ Console . WriteLine ( 42 ) ;
86+ Console . WriteLine ( "...42 (long)" ) ;
87+ Console . WriteLine ( 42L ) ;
88+ Console . ReadKey ( ) ;
89+ object test = "Test" ;
90+ Console . WriteLine ( "...Test (as object)" ) ;
91+ Console . WriteLine ( test ) ;
92+ Console . WriteLine ( "The next line should be empty (null object)" ) ;
93+ object s = null ;
94+ Console . WriteLine ( s ) ;
95+ Console . WriteLine ( "...42 (uint)" ) ;
96+ Console . WriteLine ( 42U ) ;
97+ Console . WriteLine ( "...42 (ulong)" ) ;
98+ Console . WriteLine ( 42UL ) ;
99+ Console . WriteLine ( "...BC" ) ;
100+ Console . WriteLine ( charBuffer , 1 , 2 ) ;
101+
102+ Console . WriteLine ( "Test Format arg0 {0}" , "test" ) ;
103+ Console . WriteLine ( "Test Format arg0 {0} arg1 {1}" , "test" , 42 ) ;
104+ Console . WriteLine ( "Test Format arg0 {0} arg1 {1} arg2 {2}" , "test" , 42 , 69.69 ) ;
105+ Console . WriteLine ( "Test Format arg0 {0} arg1 {1} arg2 {2} arg3 {3}" , "test" , 42 , 69.69 , 25000L ) ;
106+ /* String.Format does not support x or X and probably neither the rest of "special" formatting */
107+ //Console.WriteLine("Test Format (hex) {0:x}", 42);
108+
109+ Console . WriteLine ( "Layout switched to DE..." ) ;
110+ SetKeyboardScanMap ( new DE_Standard ( ) ) ;
111+ Console . WriteLine ( "Write in germanic now I'll read it with Console.ReadLine()..." ) ;
69112
70- //Console.ReadKey();
71- //Console.WriteLine("The next line should be empty");
72- //Console.WriteLine();
73- //Console.WriteLine("True follows...");
74- //Console.WriteLine(true);
75- //Console.WriteLine("The letter 'A'");
76- //Console.WriteLine('A');
77- //char[] charBuffer = new char[] { 'A', 'B', 'C' };
78- //Console.WriteLine("Then ABC");
79- //Console.WriteLine(charBuffer);
80- //Console.WriteLine("...42.42");
81- //Console.WriteLine(42.42);
82- //Console.WriteLine("...42.42 (float)");
83- //Console.WriteLine(42.42f);
84- //Console.WriteLine("...42");
85- //Console.WriteLine(42);
86- //Console.WriteLine("...42 (long)");
87- //Console.WriteLine(42L);
88- //Console.ReadKey();
89- //object test = "Test";
90- //Console.WriteLine("...Test (as object)");
91- //Console.WriteLine(test);
92- //Console.WriteLine("The next line should be empty (null object)");
93- //object s = null;
94- //Console.WriteLine(s);
95- //Console.WriteLine("...42 (uint)");
96- //Console.WriteLine(42U);
97- //Console.WriteLine("...42 (ulong)");
98- //Console.WriteLine(42UL);
99- //Console.WriteLine("...BC");
100- //Console.WriteLine(charBuffer, 1, 2);
101-
102- //Console.WriteLine("Test Format arg0 {0}", "test");
103- //Console.WriteLine("Test Format arg0 {0} arg1 {1}", "test", 42);
104- //Console.WriteLine("Test Format arg0 {0} arg1 {1} arg2 {2}", "test", 42, 69.69);
105- //Console.WriteLine("Test Format arg0 {0} arg1 {1} arg2 {2} arg3 {3}", "test", 42, 69.69, 25000L);
106- ///* String.Format does not support x or X and probably neither the rest of "special" formatting */
107- ////Console.WriteLine("Test Format (hex) {0:x}", 42);
108-
109- //Console.WriteLine("Layout switched to DE...");
110- //SetKeyboardScanMap(new DE_Standard());
111- //Console.WriteLine("Write in germanic now I'll read it with Console.ReadLine()...");
112-
113- //var str = Console.ReadLine();
114- //Console.WriteLine($"You have written: {str}");
115-
116- //Console.WriteLine("Write in germanic now I'll read it with Console.ReadKey()...");
117- //var character = Console.ReadKey();
118- //Console.WriteLine($"You have written: {character.KeyChar}");
119-
120- //Console.WriteLine("Press any key to terminate this test...");
121-
122- //Console.ReadKey();
113+ var str = Console . ReadLine ( ) ;
114+ Console . WriteLine ( $ "You have written: { str } ") ;
115+
116+ Console . WriteLine ( "Write in germanic now I'll read it with Console.ReadKey()..." ) ;
117+ var character = Console . ReadKey ( ) ;
118+ Console . WriteLine ( $ "You have written: { character . KeyChar } ") ;
119+
120+ Console . WriteLine ( "Press any key to terminate this test..." ) ;
121+
122+ Console . ReadKey ( ) ;
123123 TestController . Completed ( ) ;
124124 }
125125 catch ( Exception e )
0 commit comments