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")); }
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 ShouldFindPropertyEditor() { var editors = new EditorCollection(); var editor = new PropertyEditor(typeof(int), "property"); editors.Add(editor); Assert.AreEqual <PropertyEditor>(editor, editors.FindPropertyEditor(typeof(int), "property")); }
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))); }
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 ShouldFindTypeEditorByTypeName() { EditorCollection editors = new EditorCollection(); TypeEditor editor = new TypeEditor(typeof(int), new DataTemplate()); editors.Add(editor); Assert.AreEqual<TypeEditor>(editor, editors.FindTypeEditor(typeof(int))); }