Test implementation for IVsUIShell
Inheritance: IVsUIShell
Exemplo n.º 1
0
 public void TestInitialize()
 {
     this.serviceProvider = new ConfigurableServiceProvider();
     this.uiSHell         = new StubVsUIShell();
     this.serviceProvider.RegisterService(typeof(SVsTaskSchedulerService), new SingleThreadedTaskSchedulerService());
     this.serviceProvider.RegisterService(typeof(IVsUIShell), this.uiSHell);
 }
 public void TestInitialize()
 {
     this.serviceProvider = new ConfigurableServiceProvider();
     this.uiSHell = new StubVsUIShell();
     this.serviceProvider.RegisterService(typeof(SVsTaskSchedulerService), new SingleThreadedTaskSchedulerService());
     this.serviceProvider.RegisterService(typeof(IVsUIShell), this.uiSHell);
 }
Exemplo n.º 3
0
        private StubVsUIShell.StubWindowFrame CreateAndRegisterFrame()
        {
            var frame = new StubVsUIShell.StubWindowFrame();

            var uiShell = new StubVsUIShell
            {
                FindToolWindowAction = (windowSlotGuid) =>
                {
                    windowSlotGuid.Should().Be(VSConstants.StandardToolWindows.Output, "Unexpected window slot guid");
                    return(frame);
                }
            };

            this.serviceProvider.RegisterService(typeof(SVsUIShell), uiShell);

            return(frame);
        }
Exemplo n.º 4
0
 public void TestCleanup()
 {
     this.uiSHell         = null;
     this.serviceProvider = null;
     this.testSubject     = null;
 }
 public void TestCleanup()
 {
     this.uiSHell = null;
     this.serviceProvider = null;
     this.testSubject = null;
 }
        private StubVsUIShell.StubWindowFrame CreateAndRegisterFrame()
        {
            var frame = new StubVsUIShell.StubWindowFrame();

            var uiShell = new StubVsUIShell
            {
                FindToolWindowAction = (windowSlotGuid) =>
                {
                    Assert.AreEqual(VSConstants.StandardToolWindows.Output, windowSlotGuid, "Unexpected window slot guid");
                    return frame;
                }
            };

            this.serviceProvider.RegisterService(typeof(SVsUIShell), uiShell);

            return frame;
        }