Skip to content

Commit bd8b906

Browse files
author
Denys Zhuravel
committed
Make tests fail to showcase the issue
1 parent 34a1eef commit bd8b906

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

test/Amazon.Lambda.Tools.Test/FlattenDependencyTests.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,16 @@ public async Task NativeDependencyExample()
124124
}
125125
}
126126

127-
[Fact]
128-
public async Task NativeDependency2Example()
127+
[Theory]
128+
[InlineData("netcoreapp2.1")]
129+
[InlineData("netcoreapp3.1")]
130+
public async Task NativeDependency2Example(string targetFramework)
129131
{
130132
var fullPath = GetTestProjectPath("NativeDependencyExample2");
131133
var command = new PackageCommand(new TestToolLogger(_testOutputHelper), fullPath, new string[0]);
132134
command.DisableInteractive = true;
133135
command.Configuration = "Release";
134-
command.TargetFramework = "netcoreapp2.1";
136+
command.TargetFramework = targetFramework;
135137

136138
command.OutputPackageFileName = Path.GetTempFileName() + ".zip";
137139

testapps/FlattenDependencyTestProjects/NativeDependencyExample2/NativeDependencyExample2.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>netcoreapp2.1</TargetFramework>
3+
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
44
<AssemblyName>NativeDependencyExample2</AssemblyName>
55
<PackageId>NativeDependencyExample2</PackageId>
66
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
@@ -10,7 +10,7 @@
1010
<WarningsAsErrors />
1111
</PropertyGroup>
1212
<ItemGroup>
13-
<PackageReference Include="Amazon.Lambda.Serialization.Json" Version="1.1.0" />
13+
<PackageReference Include="Amazon.Lambda.Serialization.Json" Version="1.7.0" />
1414
<PackageReference Include="LibGit2Sharp.NativeBinaries" Version="1.0.226" />
1515
</ItemGroup>
1616
<ItemGroup>

0 commit comments

Comments
 (0)