Exemple #1
0
        public void SharedProjectReferencesProviderContext_IsApplicable()
        {
            var capabilities = IProjectCapabilitiesScopeFactory.Create(capabilities: new string[] { ProjectCapability.ReferenceManagerSharedProjects });
            var project      = ConfiguredProjectFactory.Create(capabilities: capabilities);

            SharedProjectReferencesProviderContext context = new SharedProjectReferencesProviderContext(project);

            Assert.True(context.IsApplicable());
        }
Exemple #2
0
        public void SharedProjectReferencesProviderContext_IsApplicable_False()
        {
            var capabilities = IProjectCapabilitiesScopeFactory.Create();
            var project      = ConfiguredProjectFactory.Create(capabilities: capabilities);

            SharedProjectReferencesProviderContext context = new SharedProjectReferencesProviderContext(project);

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