public void GetAttributes_memberInfo_inherit_false() { Type t = typeof(MyDerivedTestClass); MyTestAttribute[] actual = MemberInfoExtensions.GetAttributes <MyTestAttribute>(t, false); Assert.IsNotNull(actual); Assert.AreEqual <int>(0, actual.Length); }
public void GetAttributes_memberInfo() { Type t = typeof(MyBaseTestClass); MyTestAttribute[] actual = MemberInfoExtensions.GetAttributes <MyTestAttribute>(t); Assert.IsNotNull(actual); Assert.AreEqual <int>(1, actual.Length); Assert.IsNotNull(actual[0]); }
public void GetAttributes_null_memberInfo() { MemberInfoExtensions.GetAttributes <MyTestAttribute>(null); }