예제 #1
0
        /// <summary>
        /// Initializes a new failure web control.
        /// </summary>
        /// <param name="testClass">The test class metadata object.</param>
        /// <param name="summaryControl">The overall summary control.</param>
        public FailureControl(ITestClass testClass, FailureSummaryControl summaryControl) : base()
        {
            _summary = summaryControl;

            Margin.All    = 0;
            Margin.Top    = 4;
            Margin.Bottom = 2;

            CreateClassHeader(testClass.Name);
        }
예제 #2
0
파일: FailureControl.cs 프로젝트: dfr0/moon
        /// <summary>
        /// Initializes a new failure web control.
        /// </summary>
        /// <param name="testClass">The test class metadata object.</param>
        /// <param name="summaryControl">The overall summary control.</param>
        public FailureControl(ITestClass testClass, FailureSummaryControl summaryControl) : base()
        {
            _summary = summaryControl;

            Margin.All = 0;
            Margin.Top = 4;
            Margin.Bottom = 2;

            CreateClassHeader(testClass.Name);
        }
예제 #3
0
        /// <summary>
        /// Initializes the component.
        /// </summary>
        private void InitializeComponent()
        {
            _startElements              = new Dictionary <ITestMethod, HtmlContainerControl>();
            _statusDisplay              = new CurrentTestStatus();
            _statusDisplay.Fail         = _statusDisplay.Total = 0;
            _failureSummary             = new FailureSummaryControl();
            _progressText               = new HtmlDiv();
            _progressText.Margin.Bottom = 4;

            LogContainer.Controls.Add(_statusDisplay);
            PlaceProgressBar();
            LogContainer.Controls.Add(_progressText);
            LogContainer.Controls.Add(_failureSummary);

            RegisterLogHandlers();
        }