PageRenderTime 19ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 1ms

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

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