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