Browse Source

Fix unit test bug

optimization-1
Christoph Ruegg 13 years ago
parent
commit
a6c9e3eff3
  1. 3
      src/UnitTests/LinearAlgebraTests/StaticDynamicWrapper.cs

3
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;

Loading…
Cancel
Save