public void GetCustomAttributesByFullName() { // Type var @thisClass = new System_Object_GetCustomAttributesByFullName_TestClass(); var @thisEnum = System_Object_GetCustomAttributesByFullName_TestEnum.Test; // Exemples var result1 = @thisClass.GetCustomAttributesByFullName("Z.Reflection.Test.System_Object_GetCustomAttributesByFullName_CustomAttribute"); var result2 = @thisClass.GetCustomAttributesByFullName("Z.Reflection.Test.System_Object_GetCustomAttributesByFullName_CustomAttribute", false); var result3 = @thisClass.GetType().GetCustomAttributesByFullName("Z.Reflection.Test.System_Object_GetCustomAttributesByFullName_CustomAttribute"); var result4 = @thisClass.GetType().GetCustomAttributesByFullName("Z.Reflection.Test.System_Object_GetCustomAttributesByFullName_CustomAttribute", false); var result5 = @thisEnum.GetCustomAttributesByFullName("Z.Reflection.Test.System_Object_GetCustomAttributesByFullName_CustomAttribute"); var result6 = @thisEnum.GetCustomAttributesByFullName("Z.Reflection.Test.System_Object_GetCustomAttributesByFullName_CustomAttribute", false); // Unit Test Assert.AreEqual("Test Class", ((System_Object_GetCustomAttributesByFullName_CustomAttribute)result1[0]).Text); Assert.AreEqual("Test Class", ((System_Object_GetCustomAttributesByFullName_CustomAttribute)result2[0]).Text); Assert.AreEqual("Test Class", ((System_Object_GetCustomAttributesByFullName_CustomAttribute)result3[0]).Text); Assert.AreEqual("Test Class", ((System_Object_GetCustomAttributesByFullName_CustomAttribute)result4[0]).Text); Assert.AreEqual("Test Enum", ((System_Object_GetCustomAttributesByFullName_CustomAttribute)result5[0]).Text); Assert.AreEqual("Test Enum", ((System_Object_GetCustomAttributesByFullName_CustomAttribute)result6[0]).Text); }
public void GetCustomAttributesByFullName() { // Type var @thisClass = new System_Object_GetCustomAttributesByFullName_TestClass(); var @thisEnum = System_Object_GetCustomAttributesByFullName_TestEnum.Test; // Exemples var result1 = @thisClass.GetCustomAttributesByFullName("Z.Reflection.Test.System_Object_GetCustomAttributesByFullName_CustomAttribute"); var result2 = @thisClass.GetCustomAttributesByFullName("Z.Reflection.Test.System_Object_GetCustomAttributesByFullName_CustomAttribute", false); var result3 = @thisClass.GetType().GetCustomAttributesByFullName("Z.Reflection.Test.System_Object_GetCustomAttributesByFullName_CustomAttribute"); var result4 = @thisClass.GetType().GetCustomAttributesByFullName("Z.Reflection.Test.System_Object_GetCustomAttributesByFullName_CustomAttribute", false); var result5 = @thisEnum.GetCustomAttributesByFullName("Z.Reflection.Test.System_Object_GetCustomAttributesByFullName_CustomAttribute"); var result6 = @thisEnum.GetCustomAttributesByFullName("Z.Reflection.Test.System_Object_GetCustomAttributesByFullName_CustomAttribute", false); // Unit Test Assert.AreEqual("Test Class", ((System_Object_GetCustomAttributesByFullName_CustomAttribute) result1[0]).Text); Assert.AreEqual("Test Class", ((System_Object_GetCustomAttributesByFullName_CustomAttribute) result2[0]).Text); Assert.AreEqual("Test Class", ((System_Object_GetCustomAttributesByFullName_CustomAttribute) result3[0]).Text); Assert.AreEqual("Test Class", ((System_Object_GetCustomAttributesByFullName_CustomAttribute) result4[0]).Text); Assert.AreEqual("Test Enum", ((System_Object_GetCustomAttributesByFullName_CustomAttribute) result5[0]).Text); Assert.AreEqual("Test Enum", ((System_Object_GetCustomAttributesByFullName_CustomAttribute) result6[0]).Text); }