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