internal static void RunTest(
            ITest test,
            TextWriter outStream)
        {
            ITestResult result = test.Perform();

            outStream.WriteLine(result.ToString());
            if (result.GetException() != null)
            {
                outStream.WriteLine(result.GetException().StackTrace);
            }
        }