using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace FrodeTest { public static class Check { private static string mText = ""; public static string Text { get { return mText; } set { mText = value; } } public static void Validate(bool expression) { if (expression) OK(); else Fail(); } public static bool OK() { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("OK [" + Text + "]"); Console.ForegroundColor = ConsoleColor.White; return true; } public static bool Fail() { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("FAIL [" + Text + "]"); Console.ForegroundColor = ConsoleColor.White; return false; } internal static void SetHeadingText(string heading) { Console.ForegroundColor = ConsoleColor.Blue; Console.WriteLine("-- " + heading + " --"); Console.ForegroundColor = ConsoleColor.White; } } }