Example #1
0
        private void DumpTypeAndFields(Type type)
        {
            StringWriter stringWriter = new StringWriter();

            TypeInspector.DumpTypeAndFields(type, stringWriter);
            try
            {
                TestContext.WriteLine("{0}", stringWriter);
            }
            catch (NotImplementedException)
            {
                // TestRunner TestContext does not implement WriteLine.
                // Do not output anything in that case
            }
        }