Ejemplo n.º 1
0
        public void SetUp()
        {
            _mockRenderer = Substitute.For <IErrorListRenderer>();

            _list = new TestingErrorList(_mockRenderer);

            _trace1 =
                "à SomeClass.SomeMethod() dans C:\\folder\\file1.cs:ligne 20\r\n" +
                "à ExternClass.ExternMethod()\r\n" +
                "à AnotherExternClass.AnotherExternMethod()\r\n" +
                "à SomeClass2.SomeMethod2() dans C:\\folder\\file2.cs:ligne 42\r\n" +
                "à SomeClass3.SomeMethod3() dans C:\\folder\\AnotherFile2.cs:ligne 93\r\n";

            _trace2 =
                "à SomeClass.SomeMethod() dans C:\\folder\\file1.cs:ligne 20\r\n" +
                "à ExternClass.ExternMethod()\r\n" +
                "à AnotherExternClass.AnotherExternMethod()\r\n" +
                "à SomeClass2.SomeMethod2() dans C:\\folder\\file2.cs:ligne 42\r\n";

            _selectionNotification = false;

            _list.SelectedItemChanged += new EventHandler(_list_SelectedItemChanged);

            return;
        }
Ejemplo n.º 2
0
        public void SetUp()
        {
            _mockRenderer = Substitute.For<IErrorListRenderer>();

            _list = new TestingErrorList(_mockRenderer);

            _trace1 =
                "à SomeClass.SomeMethod() dans C:\\folder\\file1.cs:ligne 20\r\n" +
                "à ExternClass.ExternMethod()\r\n" +
                "à AnotherExternClass.AnotherExternMethod()\r\n" +
                "à SomeClass2.SomeMethod2() dans C:\\folder\\file2.cs:ligne 42\r\n" +
                "à SomeClass3.SomeMethod3() dans C:\\folder\\AnotherFile2.cs:ligne 93\r\n";

            _trace2 =
                "à SomeClass.SomeMethod() dans C:\\folder\\file1.cs:ligne 20\r\n" +
                "à ExternClass.ExternMethod()\r\n" +
                "à AnotherExternClass.AnotherExternMethod()\r\n" +
                "à SomeClass2.SomeMethod2() dans C:\\folder\\file2.cs:ligne 42\r\n";

            _selectionNotification = false;

            _list.SelectedItemChanged += new EventHandler(_list_SelectedItemChanged);

            return;
        }
Ejemplo n.º 3
0
        protected ErrorList(IErrorListRenderer renderer)
        {
            UiExceptionHelper.CheckNotNull(renderer, "display");

            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            DoubleBuffered = true;

            _renderer        = renderer;
            _items           = new ErrorItemCollection();
            _stackTrace      = null;
            _selection       = null;
            _workingGraphics = CreateGraphics();
            _hoveredIndex    = -1;

            _autoSelectFirstItem = false;
            _listOrder           = ErrorListOrderPolicy.InitialOrder;

            return;
        }
Ejemplo n.º 4
0
 public TestingErrorList(IErrorListRenderer renderer) :
     base(renderer)
 {
 }
Ejemplo n.º 5
0
 public TestingErrorList(IErrorListRenderer renderer) :
     base(renderer)
 {
 }
Ejemplo n.º 6
0
        protected ErrorList(IErrorListRenderer renderer)
        {
            UiExceptionHelper.CheckNotNull(renderer, "display");

            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            DoubleBuffered = true;

            _renderer = renderer;
            _items = new ErrorItemCollection();
            _stackTrace = null;
            _selection = null;
            _workingGraphics = CreateGraphics();
            _hoveredIndex = -1;

            _autoSelectFirstItem = false;
            _listOrder = ErrorListOrderPolicy.InitialOrder;

            return;
        }