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; }
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; }
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; }
public TestingErrorList(IErrorListRenderer renderer) : base(renderer) { }