public void AddFileContextProvider_IsApplicable_False() { var capabilities = IProjectCapabilitiesScopeFactory.Create(); var project = ConfiguredProjectFactory.Create(capabilities: capabilities); AddFileContextProvider context = new AddFileContextProvider(project); Assert.False(context.IsApplicable()); }
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()); }