public VsPathContextProviderTests(DispatcherThreadFixture fixture)
        {
            Assumes.Present(fixture);

            _jtf = fixture.JoinableTaskFactory;
            NuGetUIThreadHelper.SetCustomJoinableTaskFactory(_jtf);
        }
Exemplo n.º 2
0
        public CpsPackageReferenceProjectProviderTests(DispatcherThreadFixture fixture)
        {
            Assumes.Present(fixture);

            _jtf = fixture.JoinableTaskFactory;

            NuGetUIThreadHelper.SetCustomJoinableTaskFactory(_jtf);
        }
Exemplo n.º 3
0
        public ProjectKNuGetProjectTests(DispatcherThreadFixture fixture)
        {
            Assumes.Present(fixture);

            _jtf = fixture.JoinableTaskFactory;

            NuGetUIThreadHelper.SetCustomJoinableTaskFactory(_jtf);
        }
Exemplo n.º 4
0
        public NuGetLockServiceTests(DispatcherThreadFixture fixture)
        {
            Assumes.Present(fixture);

            _jtf = fixture.JoinableTaskFactory;

            _lockService = new NuGetLockService();
            Assert.False(_lockService.IsLockHeld);
        }
Exemplo n.º 5
0
        public NuGetLockServiceTests(DispatcherThreadFixture fixture)
        {
            Assumes.Present(fixture);

            _jtf = fixture.JoinableTaskFactory;

            _lockService = new NuGetLockService(fixture.JoinableTaskFactory.Context);
            NuGetUIThreadHelper.SetCustomJoinableTaskFactory(_jtf);
            Assert.False(_lockService.IsLockHeld);
        }
Exemplo n.º 6
0
        public SolutionRestoreBuildHandlerTests(DispatcherThreadFixture fixture)
        {
            Assumes.Present(fixture);

            _jtf = fixture.JoinableTaskFactory;

#pragma warning disable VSSDK005 // Avoid instantiating JoinableTaskContext
            var joinableTaskContext = new JoinableTaskContext(Thread.CurrentThread, SynchronizationContext.Current);
#pragma warning restore VSSDK005 // Avoid instantiating JoinableTaskContext

            NuGetUIThreadHelper.SetCustomJoinableTaskFactory(_jtf);
        }
Exemplo n.º 7
0
        public NuGetProjectManagerServiceTests(DispatcherThreadFixture dispatcherThreadFixture)
        {
            Assert.NotNull(dispatcherThreadFixture);

            _projectContext = new TestNuGetProjectContext();
            _services       = new Dictionary <Type, Task <object> >()
            {
                { typeof(INuGetProjectContext), Task.FromResult <object>(_projectContext) }
            };

            ServiceLocator.InitializePackageServiceProvider(this);

            NuGetUIThreadHelper.SetCustomJoinableTaskFactory(dispatcherThreadFixture.JoinableTaskFactory);
        }
        public PackageItemListViewModelTests(DispatcherThreadFixture fixture, ITestOutputHelper output, LocalPackageSearchMetadataFixture testData)
        {
            _testData     = testData;
            _testInstance = new PackageItemListViewModel()
            {
                PackageReader = _testData.TestData.PackageReader,
            };
            _output = output;

            Assumes.Present(fixture);

            _jtf = fixture.JoinableTaskFactory;
            NuGetUIThreadHelper.SetCustomJoinableTaskFactory(_jtf);
        }
        public LegacyPackageReferenceRestoreUtilityTests(DispatcherThreadFixture fixture)
        {
            Assumes.Present(fixture);

            _threadingService = new TestProjectThreadingService(fixture.JoinableTaskFactory);
        }
Exemplo n.º 10
0
        public SolutionRestoreBuildHandlerTests(DispatcherThreadFixture fixture)
        {
            Assumes.Present(fixture);

            _jtf = fixture.JoinableTaskFactory;
        }
Exemplo n.º 11
0
 public VisualStudioCredentialProviderTests(DispatcherThreadFixture fixture)
 {
     _fixture = fixture;
 }