Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Util
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv18826
Modified Files:
ReflectionUtilsTests.cs
Log Message:
SPRNET-908 : ReflectionUtils.MethodIsOnOneOfTheseInterfaces does not correctly iterate over multiple interface types
Index: ReflectionUtilsTests.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Util/ReflectionUtilsTests.cs,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** ReflectionUtilsTests.cs 24 Jan 2008 04:10:44 -0000 1.21
--- ReflectionUtilsTests.cs 2 Apr 2008 16:21:49 -0000 1.22
***************
*** 33,36 ****
--- 33,37 ----
using Spring.Objects;
using Spring.Objects.Factory;
+ using Spring.Objects.Factory.Attributes;
#endregion
***************
*** 203,206 ****
--- 204,216 ----
}
+ [Test]
+ public void MethodIsOnOneOfTheseInterfacesMultiple()
+ {
+ MethodInfo method = typeof(RequiredTestObject).GetMethod("set_ObjectFactory");
+ Assert.IsNotNull(method, "Could not get setter property for ObjectFactory");
+ Assert.IsTrue(ReflectionUtils.MethodIsOnOneOfTheseInterfaces(method, new Type[] { typeof (IObjectNameAware), typeof(IObjectFactoryAware)}));
+ }
+
+
[Test]
[ExpectedException(typeof (ArgumentNullException))]
|