Example #1
0
        public static VisualBasicNamespaceImportsList CreateInstance(params string[] list)
        {
            var newList = new VisualBasicNamespaceImportsList();

            newList.SetList(list.ToList());

            return(newList);
        }
Example #2
0
 private static VisualBasicVSImports CreateInstance(
     VSLangProj.VSProject vsProject,
     IProjectThreadingService threadingService,
     ActiveConfiguredProject <ConfiguredProject> activeConfiguredProject,
     IProjectAccessor projectAccessor,
     IUnconfiguredProjectVsServices vsServices,
     VisualBasicNamespaceImportsList importList)
 {
     return(new VisualBasicVSImports(vsProject, threadingService, activeConfiguredProject, projectAccessor, vsServices, importList));
 }
Example #3
0
        public VisualBasicVSImports(
            [Import(ExportContractNames.VsTypes.CpsVSProject)] VSLangProj.VSProject vsProject,
            IProjectThreadingService threadingService,
            IActiveConfiguredValue <ConfiguredProject> activeConfiguredProject,
            IProjectAccessor projectAccessor,
            IUnconfiguredProjectVsServices unconfiguredProjectVSServices,
            VisualBasicNamespaceImportsList importsList)
        {
            _vsProject = vsProject;
            _activeConfiguredProject       = activeConfiguredProject;
            _projectAccessor               = projectAccessor;
            _threadingService              = threadingService;
            _unconfiguredProjectVSServices = unconfiguredProjectVSServices;
            _importsList = importsList;

            AddEventSource(this);
        }
Example #4
0
        public void Constructor_NotNull()
        {
            var list = new VisualBasicNamespaceImportsList(Mock.Of <IActiveConfiguredProjectSubscriptionService>());

            Assert.NotNull(list);
        }