Пример #1
0
        public void ObtainsPaneFromContainer()
        {
            var pane = new ShellToolWindowPane(MockRepository.GenerateStub<IServiceProvider>());
            var container = new ToolWindowContainer(pane);
            var window = new MyConcreteShellToolWindowControl();

            container.ToolWindow = window;

            Assert.AreSame(pane, window.ToolWindowPane);
        }
Пример #2
0
        public void ObtainsPaneFromContainer()
        {
            var pane      = new ShellToolWindowPane(MockRepository.GenerateStub <IServiceProvider>());
            var container = new ToolWindowContainer(pane);
            var window    = new MyConcreteShellToolWindowControl();

            container.ToolWindow = window;

            Assert.AreSame(pane, window.ToolWindowPane);
        }
Пример #3
0
        public void ConstructsByDefault()
        {
            var control = new MyConcreteShellToolWindowControl();

            Assert.IsNull(control.ToolWindowPane);
        }
Пример #4
0
        public void ConstructsByDefault()
        {
            var control = new MyConcreteShellToolWindowControl();

            Assert.IsNull(control.ToolWindowPane);
        }