private void WalkTheTestResult(TestResult result) { if (result.Test.TestType.Equals("TestMethod", StringComparison.InvariantCultureIgnoreCase)) { TestItemViewModel itemVM = new TestItemViewModel(result); TestResults.Add(itemVM); return; } if (result.Results == null) { return; } if (result.Results.Count <= 0) { return; } foreach (TestResult child in result.Results) { WalkTheTestResult(child); } }
private void WalkTheTestResult(TestResult result) { if (result.Test.TestType.Equals("TestMethod", StringComparison.InvariantCultureIgnoreCase)) { TestItemViewModel itemVM = new TestItemViewModel(result); TestResults.Add(itemVM); return; } if (result.Results == null) { return; } if (result.Results.Count <= 0) { return; } foreach (TestResult child in result.Results) { WalkTheTestResult(child); } }