/// <summary> /// Modify a newly constructed test based on an assembly by applying /// any of NUnit's common attributes. /// </summary> /// <param name="assembly">The assembly from which the test was constructed</param> /// <param name="test">The test to which the attributes apply</param> public static void ApplyCommonAttributes(Assembly assembly, Test test) { ApplyCommonAttributes(Reflect.GetAttributes(assembly, false), test); }
/// <summary> /// Modify a newly constructed test based on a type or method by /// applying any of NUnit's common attributes. /// </summary> /// <param name="member">The type or method from which the test was constructed</param> /// <param name="test">The test to which the attributes apply</param> public static void ApplyCommonAttributes(MemberInfo member, Test test) { ApplyCommonAttributes(Reflect.GetAttributes(member, true), test); }