From a6c9e3eff3b62a65fb699e245b43cefd9b829c24 Mon Sep 17 00:00:00 2001 From: Christoph Ruegg Date: Sun, 1 Sep 2013 16:24:08 +0200 Subject: [PATCH] Fix unit test bug --- src/UnitTests/LinearAlgebraTests/StaticDynamicWrapper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UnitTests/LinearAlgebraTests/StaticDynamicWrapper.cs b/src/UnitTests/LinearAlgebraTests/StaticDynamicWrapper.cs index 1d83f942..a26173d3 100644 --- a/src/UnitTests/LinearAlgebraTests/StaticDynamicWrapper.cs +++ b/src/UnitTests/LinearAlgebraTests/StaticDynamicWrapper.cs @@ -30,6 +30,7 @@ using System; using System.Dynamic; +using System.Linq; using System.Reflection; namespace MathNet.Numerics.UnitTests.LinearAlgebraTests @@ -64,7 +65,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests // Handle static methods public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result) { - MethodInfo method = _type.GetMethod(binder.Name, BindingFlags.FlattenHierarchy | BindingFlags.Static | BindingFlags.Public); + MethodInfo method = _type.GetMethod(binder.Name, args.Select(a => a.GetType()).ToArray()); if (method == null) { result = null;