public void AddToProject()
        {
            nUnitPresenterArxNet = NewPresenter(false);
            nUnitPresenterArxNet.NewProject();
            ServicesArxNet.UserSettings.SaveSetting("Options.TestLoader.VisualStudioSupport", true);
            nUnitPresenterArxNet.AddToProject("Debug");

            TestLoaderArxNet loader = UnitTestHelper.GetNonPublicField(nUnitPresenterArxNet, "loader") as TestLoaderArxNet;
            NUnitProject project = loader.TestProject;
            ProjectConfig config = project.Configs[project.Configs.Count - 1];
            if (config.Assemblies !=null && config.Assemblies.Count > 0)
            {
                string assembly = config.Assemblies[config.Assemblies.Count - 1];
                CADApplication.ShowAlertDialog("最后一个程序集为:" + assembly);
            }
            else
                CADApplication.ShowAlertDialog("没添加程序集!");

            CADApplication.ShowAlertDialog("最后一个项目文件:" + config.ConfigurationFilePath);
        }
 public void AddToProject_form_loader_null()
 {
     nUnitPresenterArxNet = NewPresenter(true);
     nUnitPresenterArxNet.AddToProject();
 }