public void ShouldGetCategoryEditor() { Editor editor = EditorCollection.GetCategoryEditorByAttributes(typeof(BusinessObject), "category"); Assert.IsNotNull(editor); Assert.IsInstanceOfType(editor, typeof(CategoryEditorMock)); }
public void ShouldGetNoCategoryEditor() { Assert.IsNull(EditorCollection.GetCategoryEditorByAttributes(null, "category")); Assert.IsNull(EditorCollection.GetCategoryEditorByAttributes(typeof(int), null)); Assert.IsNull(EditorCollection.GetCategoryEditorByAttributes(typeof(BusinessObject), "missing")); Assert.IsNull(EditorCollection.GetCategoryEditorByAttributes(typeof(BusinessObject), "invalid1")); Assert.IsNull(EditorCollection.GetCategoryEditorByAttributes(typeof(BusinessObject), "invalid2")); Assert.IsNull(EditorCollection.GetCategoryEditorByAttributes(typeof(BusinessObject), "invalid3")); }