Example #1
0
        public override TestResult MergeResults(TestResult inMemory, TestResultMessage fromTheWire)
        {
            // The only type of message we should receive from the wire is a GallioTestResult.
            // However, we can receive multiple results in the case where the test is data-driven
            // so we need to merge them.
            GallioTestResult gallioInMemory = inMemory as GallioTestResult;

            if (gallioInMemory == null && inMemory != null)
            {
                gallioInMemory = new GallioTestResult(gallioInMemory);
            }

            GallioTestResult gallioFromTheWire = fromTheWire as GallioTestResult;

            if (gallioFromTheWire == null && fromTheWire is TestResult)
            {
                gallioFromTheWire = new GallioTestResult((TestResult)fromTheWire);
            }

            return(GallioTestResultFactory.Merge(gallioInMemory, gallioFromTheWire));
        }
Example #2
0
        public override TestResult MergeResults(TestResult inMemory, TestResultMessage fromTheWire)
        {
            // The only type of message we should receive from the wire is a GallioTestResult.
            // However, we can receive multiple results in the case where the test is data-driven
            // so we need to merge them.
            GallioTestResult gallioInMemory = inMemory as GallioTestResult;
            if (gallioInMemory == null && inMemory != null)
                gallioInMemory = new GallioTestResult(gallioInMemory);

            GallioTestResult gallioFromTheWire = fromTheWire as GallioTestResult;
            if (gallioFromTheWire == null && fromTheWire is TestResult)
                gallioFromTheWire = new GallioTestResult((TestResult)fromTheWire);

            return GallioTestResultFactory.Merge(gallioInMemory, gallioFromTheWire);
        }
Example #3
0
 public TestResult MergeResults(TestResult inMemory, TestResultMessage fromTheWire)
 {
     return target.MergeResults(inMemory, fromTheWire);
 }
Example #4
0
 public static MSVST4U_UnitTestResult New_MSVST4U_UnitTestResult_DataDriven(Guid runId, ITestElement test, TestOutcome outcome, TestResultCounter counters, MSVSTTC_TestResult[] innerResults)
 {
     return MSVST4U_Tunnels.CreateAggregateDataTestResult(runId, test, outcome, counters, innerResults);
 }
Example #5
0
 public TestResult MergeResults(TestResult inMemory, TestResultMessage fromTheWire)
 {
     return(target.MergeResults(inMemory, fromTheWire));
 }