示例#1
0
        public void AddFileContextProvider_IsApplicable_False()
        {
            var capabilities = IProjectCapabilitiesScopeFactory.Create();
            var project      = ConfiguredProjectFactory.Create(capabilities: capabilities);

            AddFileContextProvider context = new AddFileContextProvider(project);

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

            AddFileContextProvider context = new AddFileContextProvider(project);

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