public void WhenContextIsNotPassed_EditStyleIsModal() { var editor = new ImageUriEditor(new Window()); Assert.Equal(UITypeEditorEditStyle.Modal, editor.GetEditStyle()); }
public void WhenContextIsNotNull_EditStyleIsModal() { var editor = new ImageUriEditor(new Window()); var context = Mock.Of<ITypeDescriptorContext>(); Assert.Equal(UITypeEditorEditStyle.Modal, editor.GetEditStyle(context)); }