1
0
mirror of synced 2025-12-25 11:00:14 -05:00
Files
core/tools/cli-bootstrap/testing/e2e/Program.cs
2016-11-20 23:40:53 +00:00

75 lines
2.7 KiB
C#

using System;
using System.Collections.Generic;
using System.IO;
public static class Program
{
public static int Main(string[] args)
{
// Draw a dotnet bot.
Bot(QuoteOfTheDay());
return 42; // test pass code
}
public static string QuoteOfTheDay()
{
var quotes = File.ReadAllLines("quotes.txt");
return quotes[new Random().Next(0, quotes.Length - 1)];
}
public static void Bot(string message)
{
var _tempForeground = Console.ForegroundColor;
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine(message);
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine(@"
__________________
\
\");
Console.ForegroundColor = ConsoleColor.Magenta;
Console.WriteLine(@"
....
....'
....
..........
.............'..'..
................'..'.....
.......'..........'..'..'....
........'..........'..'..'.....
.'....'..'..........'..'.......'.
.'..................'... ......
. ......'......... .....
. ......
.. . .. ......
.... . .......
...... ....... ............
................ ......................
........................'................
......................'..'...... .......
.........................'..'..... .......
........ ..'.............'..'.... ..........
..'..'... ...............'....... ..........
...'...... ...... .......... ...... .......
........... ....... ........ ......
....... '...'.'. '.'.'.' ....
....... .....'.. ..'.....
.. .......... ..'........
............ ..............
............. '..............
...........'.. .'.'............
............... .'.'.............
.............'.. ..'..'...........
............... .'..............
......... ..............
.....");
}
Console.ForegroundColor = _tempForeground;
}