Example #1
0
        /// <summary>
        /// Invokes the test result viewer for the specified Gallio test.
        /// </summary>
        /// <param name="result">The result of the unit test.</param>
        public void InvokeResultViewer(TestResultMessage result)
        {
            if (!TipShellExtension.IsInitialized)
            {
                return;
            }

            GallioTestResult gallioResult = result as GallioTestResult;

            if (gallioResult != null)
            {
                TestResultWindow window = new TestResultWindow(gallioResult);
                toolWindowManager.OpenToolWindow(GetWindowId(gallioResult), window);
            }
        }