예제 #1
0
        public void WhenContextIsNotNull_EditStyleIsModal()
        {
            var editor = new ImageUriEditor(new Window());

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

            Assert.Equal(UITypeEditorEditStyle.Modal, editor.GetEditStyle(context));
        }
예제 #2
0
        public void WhenContextIsNotPassed_EditStyleIsModal()
        {
            var editor = new ImageUriEditor(new Window());

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