CLI tool for running Playbooks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
694 B

6 months ago
  1. using System;
  2. using System.Diagnostics;
  3. namespace TrustedUninstaller.Shared
  4. {
  5. public static class Testing
  6. {
  7. [Conditional("DEBUG")]
  8. public static void WriteLine(object text)
  9. {
  10. Console.WriteLine(text.ToString());
  11. }
  12. public static void WriteLine(Exception exception, string shortTrace)
  13. {
  14. Console.WriteLine(exception.GetType() + " at " + shortTrace + ":" + exception.Message);
  15. }
  16. public static void WriteLine(Exception exception, string shortTrace, string item)
  17. {
  18. Console.WriteLine(exception.GetType() + " at " + shortTrace + $" ({item}):" + exception.Message);
  19. }
  20. }
  21. }