Esempio n. 1
0
        public void WhenContextIsNotPassed_EditStyleIsModal()
        {
            var editor = new ImageUriEditor(new Window());

            Assert.Equal(UITypeEditorEditStyle.Modal, editor.GetEditStyle());
        }
Esempio n. 2
0
        public void WhenContextIsNotNull_EditStyleIsModal()
        {
            var editor = new ImageUriEditor(new Window());

            var context = Mock.Of<ITypeDescriptorContext>();

            Assert.Equal(UITypeEditorEditStyle.Modal, editor.GetEditStyle(context));
        }