Пример #1
0
        public void ComReferencesProviderContext_IsApplicable_False()
        {
            var capabilities = IProjectCapabilitiesScopeFactory.Create();
            var project      = ConfiguredProjectFactory.Create(capabilities: capabilities);

            ComReferencesProviderContext context = new ComReferencesProviderContext(project);

            Assert.False(context.IsApplicable());
        }
Пример #2
0
        public void ComReferencesProviderContext_IsApplicable()
        {
            var capabilities = IProjectCapabilitiesScopeFactory.Create(capabilities: new string[] { ProjectCapability.ReferenceManagerCOM });
            var project      = ConfiguredProjectFactory.Create(capabilities: capabilities);

            ComReferencesProviderContext context = new ComReferencesProviderContext(project);

            Assert.True(context.IsApplicable());
        }