Example #1
0
        public void ProjectReferencesProviderContext_IsApplicable_False()
        {
            var capabilities = IProjectCapabilitiesScopeFactory.Create();
            var project      = ConfiguredProjectFactory.Create(capabilities: capabilities);

            ProjectReferencesProviderContext context = new ProjectReferencesProviderContext(project);

            Assert.False(context.IsApplicable());
        }
Example #2
0
        public void ProjectReferencesProviderContext_IsApplicable()
        {
            var capabilities = IProjectCapabilitiesScopeFactory.Create(capabilities: new string[] { ProjectCapability.ReferenceManagerProjects });
            var project      = ConfiguredProjectFactory.Create(capabilities: capabilities);

            ProjectReferencesProviderContext context = new ProjectReferencesProviderContext(project);

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