Ejemplo n.º 1
0
        public static RemoteTask CreateTestTaskFrom(GallioTestElement element)
        {
#if RESHARPER_50_OR_NEWER
            var testItemTask = new GallioTestItemTask(element.TestId, element.GetTypeClrName(),
                element.ShortName);
#else
            var testItemTask = new GallioTestItemTask(element.TestId, element.GetTypeClrName(), "");
#endif
            return CreateTestTask(element, testItemTask);
        }
Ejemplo n.º 2
0
        public static RemoteTask CreateTestTaskFrom(GallioTestElement element)
        {
#if RESHARPER_50_OR_NEWER
            var testItemTask = new GallioTestItemTask(element.TestId, element.GetTypeClrName(),
                                                      element.ShortName);
#else
            var testItemTask = new GallioTestItemTask(element.TestId, element.GetTypeClrName(), "");
#endif
            return(CreateTestTask(element, testItemTask));
        }
Ejemplo n.º 3
0
            public TestMonitor(IFacadeTaskServer server, GallioTestItemTask testTask)
            {
                this.server = server;
                this.testTask = testTask;

                combinedOutcome = TestOutcome.Passed;
                combinedOutput = new List<KeyValuePair<FacadeTaskOutputType, string>>();
                pendingExceptions = new List<FacadeTaskException>();

                exceptionVisitor = new ExceptionVisitor(exception =>
                {
                    do
                    {
                        pendingExceptions.Add(new FacadeTaskException(
                            exception.Type, exception.Message, exception.StackTrace.ToString()));
                        exception = exception.InnerException;
                    } while (exception != null);
                });
            }