public static void RunTests() { Console.WriteLine("Running all tests...\n"); try { var test = new IEnumerableExTests(); test.TestIsNullOrEmpty(); test.TestForEach(); test.TestToStack(); } catch (Exception ex) { Console.WriteLine($"\nTests failed with: {ex.Message}\nStack Trace: {ex.StackTrace}"); } Console.WriteLine("\nTests Complete."); }
static void Main(string[] args) { IEnumerableExTests.RunTests(); }