diff --git a/src/AzureDataFactory.TestingFramework.sln b/src/AzureDataFactory.TestingFramework.sln
index 7c086dca..a23d896c 100644
--- a/src/AzureDataFactory.TestingFramework.sln
+++ b/src/AzureDataFactory.TestingFramework.sln
@@ -1,10 +1,18 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AzureDataFactory.TestingFramework", "AzureDataFactory.TestingFramework\AzureDataFactory.TestingFramework.csproj", "{F5C4C98C-B717-4ED8-95EA-5DD51CB87C92}"
+# Visual Studio Version 17
+VisualStudioVersion = 17.7.34031.279
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AzureDataFactory.TestingFramework", "AzureDataFactory.TestingFramework\AzureDataFactory.TestingFramework.csproj", "{F5C4C98C-B717-4ED8-95EA-5DD51CB87C92}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AzureDataFactory.TestingFramework.Tests", "AzureDataFactory.TestingFramework.Tests\AzureDataFactory.TestingFramework.Tests.csproj", "{76089DF4-314B-4556-9ED7-D2B2F3BBA87A}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AzureDataFactory.TestingFramework.Tests", "AzureDataFactory.TestingFramework.Tests\AzureDataFactory.TestingFramework.Tests.csproj", "{76089DF4-314B-4556-9ED7-D2B2F3BBA87A}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AzureDataFactory.TestingFramework.Example", "AzureDataFactory.TestingFramework.Example\AzureDataFactory.TestingFramework.Example.csproj", "{F044EB13-DF36-43FB-90E8-9ADDE0E03821}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AzureDataFactory.TestingFramework.Example", "AzureDataFactory.TestingFramework.Example\AzureDataFactory.TestingFramework.Example.csproj", "{F044EB13-DF36-43FB-90E8-9ADDE0E03821}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2EC1EFEA-98DC-47FC-9EAD-69541C65ACA1}"
+ ProjectSection(SolutionItems) = preProject
+ ..\README.md = ..\README.md
+ EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -25,6 +33,7 @@ Global
{F044EB13-DF36-43FB-90E8-9ADDE0E03821}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F044EB13-DF36-43FB-90E8-9ADDE0E03821}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
diff --git a/src/AzureDataFactory.TestingFramework/AzureDataFactory.TestingFramework.csproj b/src/AzureDataFactory.TestingFramework/AzureDataFactory.TestingFramework.csproj
index 5ad744eb..4867975e 100644
--- a/src/AzureDataFactory.TestingFramework/AzureDataFactory.TestingFramework.csproj
+++ b/src/AzureDataFactory.TestingFramework/AzureDataFactory.TestingFramework.csproj
@@ -16,7 +16,7 @@
AzureDataFactory.TestingFramework
- 0.1.3-alpha
+ 0.1.4-alpha
arjendev
true
diff --git a/src/AzureDataFactory.TestingFramework/Expressions/ActivityExpression.cs b/src/AzureDataFactory.TestingFramework/Expressions/ActivityExpression.cs
index 68854278..98235676 100644
--- a/src/AzureDataFactory.TestingFramework/Expressions/ActivityExpression.cs
+++ b/src/AzureDataFactory.TestingFramework/Expressions/ActivityExpression.cs
@@ -19,7 +19,7 @@ public ActivityExpression(string expression) : base(expression)
public TType Evaluate(PipelineRunState state)
{
var (activityName, fields) = GetActivityNameAndFields();
- var activity = state.PipelineActivityResults.SingleOrDefault(x => string.Equals(x.Name, activityName, StringComparison.CurrentCultureIgnoreCase)) ??
+ var activity = state.PipelineActivityResults.LastOrDefault(x => string.Equals(x.Name, activityName, StringComparison.CurrentCultureIgnoreCase)) ??
throw new ActivityNotFoundException(activityName);
if (activity.Status == null)
throw new ActivityNotEvaluatedException(activity.Name);
diff --git a/src/AzureDataFactory.TestingFramework/Functions/FunctionArgument.cs b/src/AzureDataFactory.TestingFramework/Functions/FunctionArgument.cs
index a9ce1ec5..85442571 100644
--- a/src/AzureDataFactory.TestingFramework/Functions/FunctionArgument.cs
+++ b/src/AzureDataFactory.TestingFramework/Functions/FunctionArgument.cs
@@ -48,6 +48,7 @@ public TType Evaluate(RunState state)
{
{ } type when type == typeof(bool) && bool.TryParse(evalExpression, out var boolValue) => (TType)(object) boolValue,
{ } type when type == typeof(int) && int.TryParse(evalExpression, out var intValue) => (TType)(object) intValue,
+ { } type when type == typeof(long) && long.TryParse(evalExpression, out var longValue) => (TType)(object) longValue,
{ } type when type == typeof(string) => (TType)(object) evalExpression.TrimOneChar('\''),
{ } type => throw new ArgumentException($"The result {evalExpression} with DataType: {type} could not be parsed accordingly.")
};
diff --git a/src/AzureDataFactory.TestingFramework/Functions/FunctionCall.cs b/src/AzureDataFactory.TestingFramework/Functions/FunctionCall.cs
index 3b05d031..3cb02080 100644
--- a/src/AzureDataFactory.TestingFramework/Functions/FunctionCall.cs
+++ b/src/AzureDataFactory.TestingFramework/Functions/FunctionCall.cs
@@ -41,6 +41,7 @@ public TType Evaluate(RunState state)
{ } when parameterType == typeof(float) => argument.Evaluate(state),
{ } when parameterType == typeof(double) => argument.Evaluate(state),
{ } when parameterType == typeof(object) => argument.Evaluate