예제 #1
0
        public void AssemblyReferencesProviderContext_IsApplicable_False()
        {
            var capabilities = IProjectCapabilitiesScopeFactory.Create();
            var project      = ConfiguredProjectFactory.Create(capabilities: capabilities);

            AssemblyReferencesProviderContext context = new AssemblyReferencesProviderContext(project);

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

            AssemblyReferencesProviderContext context = new AssemblyReferencesProviderContext(project);

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