Пример #1
0
        public void ComponentEditorPage_Component_Set_GetReturnsExpected(IComponent value)
        {
            var page = new SubComponentEditorPage
            {
                Component = value
            };

            Assert.Same(value, page.Component);
            Assert.Same(value, page.GetSelectedComponent());

            // Set same.
            page.Component = value;
            Assert.Same(value, page.Component);
            Assert.Same(value, page.GetSelectedComponent());
        }
Пример #2
0
        public void ComponentEditorPage_Component_Set_GetReturnsExpected(IComponent value)
        {
            using var control = new SubComponentEditorPage
                  {
                      Component = value
                  };
            Assert.Same(value, control.Component);
            Assert.Same(value, control.GetSelectedComponent());
            Assert.False(control.IsHandleCreated);

            // Set same.
            control.Component = value;
            Assert.Same(value, control.Component);
            Assert.Same(value, control.GetSelectedComponent());
            Assert.False(control.IsHandleCreated);
        }
Пример #3
0
        public void ComponentEditorPage_GetSelectedComponent_InvokeDefault_ReturnsNull()
        {
            var page = new SubComponentEditorPage();

            Assert.Null(page.GetSelectedComponent());
        }
Пример #4
0
 public void ComponentEditorPage_GetSelectedComponent_InvokeDefault_ReturnsNull()
 {
     using var control = new SubComponentEditorPage();
     Assert.Null(control.GetSelectedComponent());
 }