public TestResult(TestSource source, TestResultBitmap bitmap) { Source = source; Bitmap_ = bitmap; }
TestResult[] runMethodTests(object instance, MethodInfo[] methods) { var results = new List<TestResult>(); foreach (var method in methods) { var source = new TestSource(instance.GetType(), method); try { var bitmap = runMethodTest(instance, method); results.Add(new TestResult(source, bitmap)); } catch (Exception e) { results.Add(new TestResult(source, e)); } } return results.ToArray(); }
public TestResult(TestSource source, Exception error) { Source = source; Error_ = error; }