Пример #1
0
        public void WinRTReferencesProviderContext_IsApplicable_False()
        {
            var capabilities = IProjectCapabilitiesScopeFactory.Create();
            var project      = ConfiguredProjectFactory.Create(capabilities: capabilities);

            WinRTReferencesProviderContext context = new WinRTReferencesProviderContext(project);

            Assert.False(context.IsApplicable());
        }
Пример #2
0
        public void WinRTReferencesProviderContext_IsApplicable()
        {
            var capabilities = IProjectCapabilitiesScopeFactory.Create(capabilities: new string[]
            {
                ProjectCapabilities.WinRTReferences,
                ProjectCapabilities.SdkReferences,
                ProjectCapability.ReferenceManagerWinRT
            });

            var project = ConfiguredProjectFactory.Create(capabilities: capabilities);

            WinRTReferencesProviderContext context = new WinRTReferencesProviderContext(project);

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