예제 #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"));
        }
예제 #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"));
        }
예제 #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"));
        }
예제 #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)));
        }
예제 #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"));
        }
예제 #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)));
        }