public void Constructor_NullAsThreadingService_ThrowsArgumentNull() { Assert.Throws <ArgumentNullException>("threadingService", () => { new VisualBasicProjectConfigurationProperties(ProjectPropertiesFactory.CreateEmpty(), null); }); }
private AppDesignerFolderSpecialFileProvider CreateInstance(IPhysicalProjectTree physicalProjectTree = null, ProjectProperties properties = null) { physicalProjectTree = physicalProjectTree ?? IPhysicalProjectTreeFactory.Create(); properties = properties ?? ProjectPropertiesFactory.CreateEmpty(); return(new AppDesignerFolderSpecialFileProvider(new Lazy <IPhysicalProjectTree>(() => physicalProjectTree), properties)); }
private CreateFileFromTemplateService CreateInstance(IUnconfiguredProjectVsServices projectVsServices, DTE2 dte, ProjectProperties properties) { projectVsServices ??= IUnconfiguredProjectVsServicesFactory.Create(); dte ??= DTEFactory.Create(); properties ??= ProjectPropertiesFactory.CreateEmpty(); return(new CreateFileFromTemplateService(projectVsServices, IVsUIServiceFactory.Create <SDTE, DTE2>(dte), properties)); }
private CreateFileFromTemplateService CreateInstance(IUnconfiguredProjectVsServices projectVsServices, IDteServices dteServices, ProjectProperties properties) { projectVsServices = projectVsServices ?? IUnconfiguredProjectVsServicesFactory.Create(); dteServices = dteServices ?? IDteServicesFactory.Create(); properties = properties ?? ProjectPropertiesFactory.CreateEmpty(); return(new CreateFileFromTemplateService(projectVsServices, dteServices, properties)); }
public void Constructor_NullAsDteServices_ThrowsArgumentNull() { var projectVsServices = IUnconfiguredProjectVsServicesFactory.Create(); var properties = ProjectPropertiesFactory.CreateEmpty(); Assert.Throws <ArgumentNullException>("dteServices", () => { new CreateFileFromTemplateService(projectVsServices, (IDteServices)null, properties); }); }
private OutputTypeChecker CreateFailedOutputTypeChecker() { var projectProperties = ProjectPropertiesFactory.CreateEmpty(); return(new OutputTypeChecker2(projectProperties)); }
public void LocalDebuggerCommandArgumentsProvider_NullAsConfiguredProject_ThrowsArgumentNull() { Assert.Throws <ArgumentNullException>("configuredProject", () => { new LocalDebuggerCommandArgumentsValueProvider(new Lazy <ProjectProperties>(() => ProjectPropertiesFactory.CreateEmpty()), null, null); }); }