From b3ae54c699117241bd84a0533cd6a763c14994b9 Mon Sep 17 00:00:00 2001 From: Petr Komissarov Date: Thu, 27 Jul 2023 18:33:29 +0300 Subject: [PATCH] Fixed problem with getting call method (#14) * Fixed problem with getting call method --- Tms.Adapter.Core/Tms.Adapter.Core.csproj | 2 +- Tms.Adapter.SpecFlowPlugin/Tms.Adapter.SpecFlowPlugin.csproj | 2 +- Tms.Adapter.XUnit/Tms.Adapter.XUnit.csproj | 2 +- Tms.Adapter/Attributes/StepAttribute.cs | 2 +- Tms.Adapter/Tms.Adapter.csproj | 2 +- TmsRunner/TmsRunner.csproj | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Tms.Adapter.Core/Tms.Adapter.Core.csproj b/Tms.Adapter.Core/Tms.Adapter.Core.csproj index 0e3fb24..51298bb 100644 --- a/Tms.Adapter.Core/Tms.Adapter.Core.csproj +++ b/Tms.Adapter.Core/Tms.Adapter.Core.csproj @@ -1,7 +1,7 @@ - 1.0.6 + 1.0.7 netstandard2.1 enable true diff --git a/Tms.Adapter.SpecFlowPlugin/Tms.Adapter.SpecFlowPlugin.csproj b/Tms.Adapter.SpecFlowPlugin/Tms.Adapter.SpecFlowPlugin.csproj index 77bfdd5..33ef5a7 100644 --- a/Tms.Adapter.SpecFlowPlugin/Tms.Adapter.SpecFlowPlugin.csproj +++ b/Tms.Adapter.SpecFlowPlugin/Tms.Adapter.SpecFlowPlugin.csproj @@ -1,7 +1,7 @@ - 1.0.6 + 1.0.7 netstandard2.1 enable true diff --git a/Tms.Adapter.XUnit/Tms.Adapter.XUnit.csproj b/Tms.Adapter.XUnit/Tms.Adapter.XUnit.csproj index 949dccf..37f1e78 100644 --- a/Tms.Adapter.XUnit/Tms.Adapter.XUnit.csproj +++ b/Tms.Adapter.XUnit/Tms.Adapter.XUnit.csproj @@ -1,7 +1,7 @@ - 1.0.6 + 1.0.7 netstandard2.1 enable true diff --git a/Tms.Adapter/Attributes/StepAttribute.cs b/Tms.Adapter/Attributes/StepAttribute.cs index 588e7f9..f51f68c 100644 --- a/Tms.Adapter/Attributes/StepAttribute.cs +++ b/Tms.Adapter/Attributes/StepAttribute.cs @@ -35,7 +35,7 @@ public override void OnEntry(MethodExecutionArgs arg) if (type is not null) { - _callerMethod = type.GetMethod(caller.Groups[2].Value); + _callerMethod = type.GetMethod(caller.Groups[2].Value, arg.Method.GetParameters().Select(x => x.ParameterType).ToArray()); if (_callerMethod == null) _callerMethod = type.GetMethod(caller.Groups[2].Value, BindingFlags.Instance | BindingFlags.NonPublic); diff --git a/Tms.Adapter/Tms.Adapter.csproj b/Tms.Adapter/Tms.Adapter.csproj index 1df0e0a..9108099 100644 --- a/Tms.Adapter/Tms.Adapter.csproj +++ b/Tms.Adapter/Tms.Adapter.csproj @@ -1,7 +1,7 @@ - 1.0.6 + 1.0.7 netstandard2.1 enable true diff --git a/TmsRunner/TmsRunner.csproj b/TmsRunner/TmsRunner.csproj index 73baeb8..0d8cc95 100644 --- a/TmsRunner/TmsRunner.csproj +++ b/TmsRunner/TmsRunner.csproj @@ -1,7 +1,7 @@  - 1.0.6 + 1.0.7 Exe enable enable