예제 #1
0
        public void ShouldGetCategoryEditor()
        {
            Editor editor = EditorCollection.GetCategoryEditorByAttributes(typeof(BusinessObject), "category");

            Assert.IsNotNull(editor);
            Assert.IsInstanceOfType(editor, typeof(CategoryEditorMock));
        }
예제 #2
0
 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"));
 }