Exemplo n.º 1
0
        private void RefreshTests()
        {
            UnitTestResult[] newResults;
            testLines = testEngine.GetTests (out newResults, out availableCategories);

            foreach (var newResult in newResults)
            {
                var result = resultList.Where (t => t.Test == newResult.Test && t.FullName == newResult.FullName).ToArray();
                if (result.Count () != 1) continue;
                newResult.Update(result.Single(), true);
            }

            UnitTestRendererLine.SelectedLines = selectedLines;
            UnitTestRendererLine.RunTest = RunTests;
            GroupLine.FoldMarkers = foldMarkers;
            TestLine.GetUnitTestResult = FindTestResult;

            resultList = new List<UnitTestResult> (newResults);

            Repaint ();
        }
Exemplo n.º 2
0
		public void AddChildren (UnitTestRendererLine[] children)
		{
			this.children.AddRange (children);
		}