Esempio n. 1
0
 public void DefaultConstructorNull()
 {
     VDEventLog vdeventlog = new VDEventLog();
     var result = vdeventlog;
     Assert.IsNull(result, string.Format("Expected for '{0}': IsNull; Actual: {1}",
                                         vdeventlog == null ? "<null>" : vdeventlog.ToString(), result));
 }
Esempio n. 2
0
 public void ReturnLogTestTrue()
 {
     string processmsg = "Process Message Is Not Null.";
     string returnlog = VDEventLog.ReturnLog(processmsg);
     string result = returnlog;
     Assert.IsNotNull(result, string.Format("Expected for '{0}': IsNotNull; Actual: {1}", returnlog, result));
 }
Esempio n. 3
0
        static void Main(string[] args)
        {
            _AppName = "VDGeneralTestsApp";
            Console.WriteLine($"Vision-Dream tests runner '{_AppName}' started...\n");
            Console.WriteLine("Press any key to continue...");
            Console.ReadKey();

            int row = 0;

            do
            {
                if (row == 0 || row >= 15)
                {
                    ResetConsole();
                }

                string input = Console.ReadLine();
                if (string.IsNullOrEmpty(input))
                {
                    break;
                }

                Console.WriteLine($"Input: {input} {"Begins with uppercase? ",30}: " +
                                  $"{(StringCharCheck.IsFirstUpper(input) ? "Yes" : "No")}\n");
                Console.WriteLine($"Input: {input} {"Formatted returned data is ",30}: " +
                                  $"{VDEventLog.ReturnLog(input)}\n");
                row += 3;
            } while (true);
            return;

            // Declare a ResetConsole local method
            void ResetConsole()
            {
                if (row > 0)
                {
                    Console.WriteLine("Press any key to continue...");
                    Console.ReadKey();
                }
                Console.Clear();
                Console.WriteLine("\nPress <Enter> only to exit; otherwise, enter a string and press <Enter>:\n");
                row = 3;
            }
        }