Example #1
0
 public TestResult(TestSource source, TestResultBitmap bitmap)
 {
     Source = source;
     Bitmap_ = bitmap;
 }
Example #2
0
        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();
        }
Example #3
0
 public TestResult(TestSource source, Exception error)
 {
     Source = source;
     Error_ = error;
 }