Exemplo n.º 1
0
        public void EditValue_InvalidProvider_ReturnsValue(IServiceProvider provider)
        {
            var editor = new FileNameEditor();
            var value  = new object();

            Assert.Same(value, editor.EditValue(null, provider, value));
        }
Exemplo n.º 2
0
        private void AddFileControls()
        {
            var loadButton = new LoadButton();

            AddComponent(loadButton);
            AddControl(loadButton);

            var saveButton = new SaveButton();

            AddComponent(saveButton);
            AddControl(saveButton);

            var fileNameEditor = new FileNameEditor();

            AddComponent(fileNameEditor);
            AddTextControl(fileNameEditor);
        }
        public void FolderNameEditor_Ctor_Default()
        {
            var editor = new FileNameEditor();

            Assert.False(editor.IsDropDownResizable);
        }
Exemplo n.º 4
0
        public void FileNameEditor_GetPaintValueSupported_Invoke_ReturnsFalse(ITypeDescriptorContext context)
        {
            var editor = new FileNameEditor();

            Assert.False(editor.GetPaintValueSupported(context));
        }
Exemplo n.º 5
0
        public void FileNameEditor_GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context)
        {
            var editor = new FileNameEditor();

            Assert.Equal(UITypeEditorEditStyle.Modal, editor.GetEditStyle(context));
        }
Exemplo n.º 6
0
        public void GetEditStyle_Invoke_ReturnsModal()
        {
            var editor = new FileNameEditor();

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