PageRenderTime 51ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/src/NUnit/UiException/Controls/IStackTraceView.cs

#
C# | 49 lines | 20 code | 5 blank | 24 comment | 0 complexity | 4a31e423ce21c03c8696557ff7c51642 MD5 | raw file
Possible License(s): GPL-2.0
  1. // ****************************************************************
  2. // This is free software licensed under the NUnit license. You may
  3. // obtain a copy of the license at http://nunit.org
  4. // ****************************************************************
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. namespace NUnit.UiException.Controls
  10. {
  11. /// <summary>
  12. /// This enum defines indicators telling how instances of IStackTraceView
  13. /// should deal with item order in their list.
  14. /// </summary>
  15. public enum ErrorListOrderPolicy
  16. {
  17. /// <summary>
  18. /// Tells IStackTraceView to order items in the list in the same
  19. /// order they appear in the stack trace.
  20. /// </summary>
  21. InitialOrder,
  22. /// <summary>
  23. /// Tells IStackTraceView to order items in the list in the reverse
  24. /// order they appear in the stack trace. At Test Driven Development time
  25. /// this value is useful to point out the location where a test is expected
  26. /// to fail.
  27. /// </summary>
  28. ReverseOrder,
  29. }
  30. /// <summary>
  31. /// The interface through which SourceCodeDisplay interacts with the error list.
  32. ///
  33. /// Direct implementations are:
  34. /// - ErrorList
  35. /// </summary>
  36. public interface IStackTraceView
  37. {
  38. event EventHandler SelectedItemChanged;
  39. string StackTrace { get; set; }
  40. ErrorItem SelectedItem { get; }
  41. bool AutoSelectFirstItem { get; set; }
  42. ErrorListOrderPolicy ListOrderPolicy { get; set; }
  43. }
  44. }