示例#1
0
 public TestCompletedEventArgs(TestMethod test, TestResult result)
 {
     Test = test;
     Result = result;
 }
 public AssertCompletedEventArgs(TestResult result)
 {
     _result = result;
 }
 public TestExplorerItem(TestMethod test, TestResult result)
 {
     _test = test;
     _result = result;
 }
        public void WriteResult(TestMethod test, TestResult result)
        {
            var gridItem = FindItem(AllTests, test);
            var playListItem = FindItem(_playList, test);

            if (gridItem == null)
            {
                var item = new TestExplorerItem(test, result);
                AllTests.Add(item);
                gridItem = FindItem(AllTests, test);
            }

            gridItem.SetResult(result);
            playListItem.SetResult(result);

            UpdateProgress();
            testOutputGridView.Refresh();
        }
 public void SetResult(TestResult result)
 {
     _result = result;
 }