Ejemplo n.º 1
0
        public TestMethodInvokerResult Invoke(params object[] args)
        {
            // Our helper results class to aggregate our test results
            HelperTestResults results = new HelperTestResults();

            IEnumerable<object> objects = m_invokerContext.TestContext.Properties[PropertyName] as IEnumerable<object>;

            foreach (var d in objects)
                results.AddTestResult(m_invokerContext.InnerInvoker.Invoke(d), new object[1] { d.GetType().ToString()});

            var output = results.GetAllResults();
            m_invokerContext.TestContext.WriteLine(output.ExtensionResult.ToString());

            return output;
        }
Ejemplo n.º 2
0
        public TestMethodInvokerResult Invoke(params object[] args)
        {
            // Our helper results class to aggregate our test results
            HelperTestResults results = new HelperTestResults();

            IEnumerable <object> objects = m_invokerContext.TestContext.Properties[PropertyName] as IEnumerable <object>;

            foreach (var d in objects)
            {
                results.AddTestResult(m_invokerContext.InnerInvoker.Invoke(d), new object[1] {
                    d.GetType().ToString()
                });
            }

            var output = results.GetAllResults();

            m_invokerContext.TestContext.WriteLine(output.ExtensionResult.ToString());

            return(output);
        }