Esempio n. 1
0
        public void ShouldFindPropertyEditor()
        {
            var editors = new EditorCollection();
              var editor = new PropertyEditor(typeof(int), "property");
              editors.Add(editor);

              Assert.AreEqual<PropertyEditor>(editor, editors.FindPropertyEditor(typeof(int), "property"));
        }
Esempio n. 2
0
        public void ShouldFindCategoryEditor()
        {
            EditorCollection editors = new EditorCollection();
              CategoryEditor editor = new CategoryEditor(typeof(int), "category", new DataTemplate());
              editors.Add(editor);

              Assert.AreEqual<CategoryEditor>(editor, editors.FindCategoryEditor(typeof(int), "category"));
        }
Esempio n. 3
0
        public void ShouldFindPropertyEditor()
        {
            var editors = new EditorCollection();
            var editor  = new PropertyEditor(typeof(int), "property");

            editors.Add(editor);

            Assert.AreEqual <PropertyEditor>(editor, editors.FindPropertyEditor(typeof(int), "property"));
        }
Esempio n. 4
0
        public void ShouldFindTypeEditorByTypeName()
        {
            EditorCollection editors = new EditorCollection();
            TypeEditor       editor  = new TypeEditor(typeof(int), new DataTemplate());

            editors.Add(editor);

            Assert.AreEqual <TypeEditor>(editor, editors.FindTypeEditor(typeof(int)));
        }
Esempio n. 5
0
        public void ShouldFindCategoryEditor()
        {
            EditorCollection editors = new EditorCollection();
            CategoryEditor   editor  = new CategoryEditor(typeof(int), "category", new DataTemplate());

            editors.Add(editor);

            Assert.AreEqual <CategoryEditor>(editor, editors.FindCategoryEditor(typeof(int), "category"));
        }
Esempio n. 6
0
        public void ShouldFindTypeEditorByTypeName()
        {
            EditorCollection editors = new EditorCollection();
              TypeEditor editor = new TypeEditor(typeof(int), new DataTemplate());
              editors.Add(editor);

              Assert.AreEqual<TypeEditor>(editor, editors.FindTypeEditor(typeof(int)));
        }