public override void ExploreAssembly(bool skipChildren)
 {
     if (assemblyTest == null)
     {
         assemblyTest = BuildAssemblyTest(testModel.RootTest);
     }
 }
 public override void ExploreAssembly(bool skipChildren)
 {
     if (assemblyTest == null)
     {
         assemblyTest = BuildAssemblyTest(testModel.RootTest);
     }
 }
        private NUnitAssemblyTest BuildAssemblyTest(Test parent)
        {
            IAssemblyInfo assemblyInfo = Reflector.Wrap(assembly);
            NUnit.Core.TestRunner runner = CreateTestRunner(assembly.Location);

            NUnitAssemblyTest assemblyTest = new NUnitAssemblyTest(assemblyInfo, runner);
            PopulateMetadata(assemblyTest);
            PopulateAssemblyTestMetadata(assemblyTest, assemblyInfo);

            foreach (NUnit.Core.ITest assemblyTestSuite in runner.Test.Tests)
                BuildTestChildren(assemblyInfo, assemblyTest, assemblyTestSuite);

            parent.AddChild(assemblyTest);
            return assemblyTest;
        }
        private NUnitAssemblyTest BuildAssemblyTest(Test parent)
        {
            IAssemblyInfo assemblyInfo = Reflector.Wrap(assembly);

            NUnit.Core.TestRunner runner = CreateTestRunner(assembly.Location);

            NUnitAssemblyTest assemblyTest = new NUnitAssemblyTest(assemblyInfo, runner);

            PopulateMetadata(assemblyTest);
            PopulateAssemblyTestMetadata(assemblyTest, assemblyInfo);

            foreach (NUnit.Core.ITest assemblyTestSuite in runner.Test.Tests)
            {
                BuildTestChildren(assemblyInfo, assemblyTest, assemblyTestSuite);
            }

            parent.AddChild(assemblyTest);
            return(assemblyTest);
        }