Skip to content

fix: revert aspect and add tests #480

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test Examples
run: dotnet test ../examples/
- name: Test & Code Coverage
run: dotnet test --collect:"XPlat Code Coverage" -r ./codecov --no-restore --verbosity normal
- name: Codecov
Expand Down
3 changes: 1 addition & 2 deletions examples/Idempotency/src/HelloWorld/HelloWorld.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
<PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.6.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.1" />
<PackageReference Include="AWS.Lambda.Powertools.Idempotency" Version="0.2.0-preview" />
<PackageReference Include="AWS.Lambda.Powertools.Idempotency" Version="0.1.0-preview" />
<PackageReference Include="AWS.Lambda.Powertools.Logging" Version="1.3.0" />
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.200.23" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion examples/Metrics/src/HelloWorld/HelloWorld.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.6.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.1" />
<PackageReference Include="AWS.Lambda.Powertools.Logging" Version="1.3.0" />
<PackageReference Include="AWS.Lambda.Powertools.Metrics" Version="1.4.0" />
<PackageReference Include="AWS.Lambda.Powertools.Metrics" Version="1.3.3" />
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.200.23" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<ItemGroup>
<PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.0" />
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.200.23" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\HelloWorld\HelloWorld.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<ItemGroup>
<PackageReference Include="Amazon.Lambda.AspNetCoreServer" Version="8.1.0" />
<PackageReference Include="AWS.Lambda.Powertools.Logging" Version="1.3.0" />
<PackageReference Include="AWS.Lambda.Powertools.Metrics" Version="1.4.0" />
<PackageReference Include="AWS.Lambda.Powertools.Metrics" Version="1.3.3" />
<PackageReference Include="AWS.Lambda.Powertools.Tracing" Version="1.3.0" />
</ItemGroup>
</Project>
160 changes: 160 additions & 0 deletions examples/examples.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Idempotency", "Idempotency", "{526F1EF7-5A9C-4BFF-ABAE-75992ACD8F78}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{0CC66DBC-C1DF-4AF6-8EEB-FFED6C578BF4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorld", "Idempotency\src\HelloWorld\HelloWorld.csproj", "{E6FCC566-A990-4359-A7B0-5C9FB4EE5AFB}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{5E5CA8DF-635F-4ADB-B349-D7A013751D35}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorld.Tests", "Idempotency\test\HelloWorld.Test\HelloWorld.Tests.csproj", "{5D01172B-9F40-42C0-A38B-AE4972E957E6}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Logging", "Logging", "{AEEF591C-4DCD-4574-8A5C-49D2C1386FF2}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{C4F3269A-EA80-4036-B67B-93D5D13FF233}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorld", "Logging\src\HelloWorld\HelloWorld.csproj", "{BEF88FC7-F0B1-475E-B5F3-A4C7D58813FB}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{711B53C1-91D6-4AD6-9E57-68B7AEF9C31F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorld.Tests", "Logging\test\HelloWorld.Test\HelloWorld.Tests.csproj", "{E0E09C50-E546-496F-AB90-AC2DA8A6FBDD}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Metrics", "Metrics", "{DBE0517D-73E6-4D71-AF29-743B5055583C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{2AF6F793-CBEC-42BA-9C80-172C69247056}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorld", "Metrics\src\HelloWorld\HelloWorld.csproj", "{6FA6525E-CD57-4657-837B-149EA257ECEE}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{D632D279-05F1-4C05-A286-3E569095A747}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorld.Tests", "Metrics\test\HelloWorld.Test\HelloWorld.Tests.csproj", "{2E885F7B-7692-4FE8-AB57-71C0C4B9F689}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Parameters", "Parameters", "{20E1837C-1E8A-47BA-AAAE-16E319B0B1DC}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "cfn", "cfn", "{9121437B-3BE3-4630-874A-B09D1157FD83}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorld.Cfn", "Parameters\cfn\HelloWorld.Cfn\HelloWorld.Cfn.csproj", "{6FE5186A-C967-4565-A8A4-8419C2805E89}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{85573FD9-C3F7-4232-B410-8F2B5033DC3B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorld", "Parameters\src\HelloWorld\HelloWorld.csproj", "{3D58D93A-2E6E-4155-969A-F737C220B71D}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{AEB7970C-3B42-4800-A1F0-892DC136E8D7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorld.Tests", "Parameters\test\HelloWorld.Test\HelloWorld.Tests.csproj", "{A59477FD-FE79-4236-A4BE-1C80A8E84F49}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ServerlessApi", "ServerlessApi", "{DC8D3983-4DE4-42E1-8C1A-1666B18559D6}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{AB496810-B8F4-4DB2-9449-CA2BCC1F7529}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LambdaPowertoolsAPI", "ServerlessApi\src\LambdaPowertoolsAPI\LambdaPowertoolsAPI.csproj", "{AA486515-A0B9-46BA-9691-43D0D1014965}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{53D6E69E-8929-41E3-8AA6-05FDA5BB4533}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LambdaPowertoolsAPI.Tests", "ServerlessApi\test\LambdaPowertoolsAPI.Tests\LambdaPowertoolsAPI.Tests.csproj", "{DC550107-39A4-443D-A1C4-69C1C3756EFE}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tracing", "Tracing", "{F5CAEA70-FF1A-4CCE-8928-D579AA7750BA}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{A5F586B6-DCE5-47A2-94B2-C8142A79BCF6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorld", "Tracing\src\HelloWorld\HelloWorld.csproj", "{E3E9268B-5897-4A7D-BDC0-D5BF78269339}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{E25EAD9C-E6DB-4F63-B7FA-7FB45AD0B09B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorld.Tests", "Tracing\test\HelloWorld.Test\HelloWorld.Tests.csproj", "{A1E1C702-77D3-4279-9E42-2A18783A0586}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E6FCC566-A990-4359-A7B0-5C9FB4EE5AFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E6FCC566-A990-4359-A7B0-5C9FB4EE5AFB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E6FCC566-A990-4359-A7B0-5C9FB4EE5AFB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E6FCC566-A990-4359-A7B0-5C9FB4EE5AFB}.Release|Any CPU.Build.0 = Release|Any CPU
{5D01172B-9F40-42C0-A38B-AE4972E957E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5D01172B-9F40-42C0-A38B-AE4972E957E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5D01172B-9F40-42C0-A38B-AE4972E957E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5D01172B-9F40-42C0-A38B-AE4972E957E6}.Release|Any CPU.Build.0 = Release|Any CPU
{BEF88FC7-F0B1-475E-B5F3-A4C7D58813FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BEF88FC7-F0B1-475E-B5F3-A4C7D58813FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BEF88FC7-F0B1-475E-B5F3-A4C7D58813FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BEF88FC7-F0B1-475E-B5F3-A4C7D58813FB}.Release|Any CPU.Build.0 = Release|Any CPU
{E0E09C50-E546-496F-AB90-AC2DA8A6FBDD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E0E09C50-E546-496F-AB90-AC2DA8A6FBDD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E0E09C50-E546-496F-AB90-AC2DA8A6FBDD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E0E09C50-E546-496F-AB90-AC2DA8A6FBDD}.Release|Any CPU.Build.0 = Release|Any CPU
{6FA6525E-CD57-4657-837B-149EA257ECEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6FA6525E-CD57-4657-837B-149EA257ECEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6FA6525E-CD57-4657-837B-149EA257ECEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6FA6525E-CD57-4657-837B-149EA257ECEE}.Release|Any CPU.Build.0 = Release|Any CPU
{2E885F7B-7692-4FE8-AB57-71C0C4B9F689}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2E885F7B-7692-4FE8-AB57-71C0C4B9F689}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2E885F7B-7692-4FE8-AB57-71C0C4B9F689}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2E885F7B-7692-4FE8-AB57-71C0C4B9F689}.Release|Any CPU.Build.0 = Release|Any CPU
{6FE5186A-C967-4565-A8A4-8419C2805E89}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6FE5186A-C967-4565-A8A4-8419C2805E89}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6FE5186A-C967-4565-A8A4-8419C2805E89}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6FE5186A-C967-4565-A8A4-8419C2805E89}.Release|Any CPU.Build.0 = Release|Any CPU
{3D58D93A-2E6E-4155-969A-F737C220B71D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3D58D93A-2E6E-4155-969A-F737C220B71D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3D58D93A-2E6E-4155-969A-F737C220B71D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3D58D93A-2E6E-4155-969A-F737C220B71D}.Release|Any CPU.Build.0 = Release|Any CPU
{A59477FD-FE79-4236-A4BE-1C80A8E84F49}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A59477FD-FE79-4236-A4BE-1C80A8E84F49}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A59477FD-FE79-4236-A4BE-1C80A8E84F49}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A59477FD-FE79-4236-A4BE-1C80A8E84F49}.Release|Any CPU.Build.0 = Release|Any CPU
{AA486515-A0B9-46BA-9691-43D0D1014965}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AA486515-A0B9-46BA-9691-43D0D1014965}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AA486515-A0B9-46BA-9691-43D0D1014965}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AA486515-A0B9-46BA-9691-43D0D1014965}.Release|Any CPU.Build.0 = Release|Any CPU
{DC550107-39A4-443D-A1C4-69C1C3756EFE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DC550107-39A4-443D-A1C4-69C1C3756EFE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DC550107-39A4-443D-A1C4-69C1C3756EFE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DC550107-39A4-443D-A1C4-69C1C3756EFE}.Release|Any CPU.Build.0 = Release|Any CPU
{E3E9268B-5897-4A7D-BDC0-D5BF78269339}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E3E9268B-5897-4A7D-BDC0-D5BF78269339}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E3E9268B-5897-4A7D-BDC0-D5BF78269339}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E3E9268B-5897-4A7D-BDC0-D5BF78269339}.Release|Any CPU.Build.0 = Release|Any CPU
{A1E1C702-77D3-4279-9E42-2A18783A0586}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A1E1C702-77D3-4279-9E42-2A18783A0586}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A1E1C702-77D3-4279-9E42-2A18783A0586}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A1E1C702-77D3-4279-9E42-2A18783A0586}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{0CC66DBC-C1DF-4AF6-8EEB-FFED6C578BF4} = {526F1EF7-5A9C-4BFF-ABAE-75992ACD8F78}
{E6FCC566-A990-4359-A7B0-5C9FB4EE5AFB} = {0CC66DBC-C1DF-4AF6-8EEB-FFED6C578BF4}
{5E5CA8DF-635F-4ADB-B349-D7A013751D35} = {526F1EF7-5A9C-4BFF-ABAE-75992ACD8F78}
{5D01172B-9F40-42C0-A38B-AE4972E957E6} = {5E5CA8DF-635F-4ADB-B349-D7A013751D35}
{C4F3269A-EA80-4036-B67B-93D5D13FF233} = {AEEF591C-4DCD-4574-8A5C-49D2C1386FF2}
{BEF88FC7-F0B1-475E-B5F3-A4C7D58813FB} = {C4F3269A-EA80-4036-B67B-93D5D13FF233}
{711B53C1-91D6-4AD6-9E57-68B7AEF9C31F} = {AEEF591C-4DCD-4574-8A5C-49D2C1386FF2}
{E0E09C50-E546-496F-AB90-AC2DA8A6FBDD} = {711B53C1-91D6-4AD6-9E57-68B7AEF9C31F}
{2AF6F793-CBEC-42BA-9C80-172C69247056} = {DBE0517D-73E6-4D71-AF29-743B5055583C}
{6FA6525E-CD57-4657-837B-149EA257ECEE} = {2AF6F793-CBEC-42BA-9C80-172C69247056}
{D632D279-05F1-4C05-A286-3E569095A747} = {DBE0517D-73E6-4D71-AF29-743B5055583C}
{2E885F7B-7692-4FE8-AB57-71C0C4B9F689} = {D632D279-05F1-4C05-A286-3E569095A747}
{9121437B-3BE3-4630-874A-B09D1157FD83} = {20E1837C-1E8A-47BA-AAAE-16E319B0B1DC}
{6FE5186A-C967-4565-A8A4-8419C2805E89} = {9121437B-3BE3-4630-874A-B09D1157FD83}
{85573FD9-C3F7-4232-B410-8F2B5033DC3B} = {20E1837C-1E8A-47BA-AAAE-16E319B0B1DC}
{3D58D93A-2E6E-4155-969A-F737C220B71D} = {85573FD9-C3F7-4232-B410-8F2B5033DC3B}
{AEB7970C-3B42-4800-A1F0-892DC136E8D7} = {20E1837C-1E8A-47BA-AAAE-16E319B0B1DC}
{A59477FD-FE79-4236-A4BE-1C80A8E84F49} = {AEB7970C-3B42-4800-A1F0-892DC136E8D7}
{AB496810-B8F4-4DB2-9449-CA2BCC1F7529} = {DC8D3983-4DE4-42E1-8C1A-1666B18559D6}
{AA486515-A0B9-46BA-9691-43D0D1014965} = {AB496810-B8F4-4DB2-9449-CA2BCC1F7529}
{53D6E69E-8929-41E3-8AA6-05FDA5BB4533} = {DC8D3983-4DE4-42E1-8C1A-1666B18559D6}
{DC550107-39A4-443D-A1C4-69C1C3756EFE} = {53D6E69E-8929-41E3-8AA6-05FDA5BB4533}
{A5F586B6-DCE5-47A2-94B2-C8142A79BCF6} = {F5CAEA70-FF1A-4CCE-8928-D579AA7750BA}
{E3E9268B-5897-4A7D-BDC0-D5BF78269339} = {A5F586B6-DCE5-47A2-94B2-C8142A79BCF6}
{E25EAD9C-E6DB-4F63-B7FA-7FB45AD0B09B} = {F5CAEA70-FF1A-4CCE-8928-D579AA7750BA}
{A1E1C702-77D3-4279-9E42-2A18783A0586} = {E25EAD9C-E6DB-4F63-B7FA-7FB45AD0B09B}
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion libraries/src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="AspectInjector" Version="2.8.2" />
<PackageVersion Include="AspectInjector" Version="2.8.1" />
<PackageVersion Include="Amazon.Lambda.Core" Version="2.1.0" />
<PackageVersion Include="AWSSDK.DynamoDBv2" Version="3.7.201.7" />
<PackageVersion Include="AWSXRayRecorder.Handlers.AwsSdk" Version="2.12.0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Xml.Linq;
using System.Xml.XPath;
using Xunit;

namespace AWS.Lambda.Powertools.Common.Tests;
Expand Down Expand Up @@ -60,6 +64,25 @@ public void Set_Execution_Real_Environment()
Assert.Equal($"{Constants.FeatureContextIdentifier}/Tests/1.0.0", systemWrapper.GetEnvironmentVariable("AWS_EXECUTION_ENV"));
}

[Fact]
public void Should_Use_Aspect_Injector_281()
{
// This test must be present until Issue: https://github.com/pamidur/aspect-injector/issues/220 is fixed

var directory = Path.GetFullPath("../../../../../src/Directory.Packages.props");
var doc = XDocument.Load(directory);

var packageReference = doc.XPathSelectElements("//PackageVersion")
.Select(pr => new
{
Include = pr.Attribute("Include")!.Value,
Version = new Version(pr.Attribute("Version")!.Value)
}).FirstOrDefault(x => x.Include == "AspectInjector");

Assert.NotNull(packageReference);
Assert.Equal("2.8.1", packageReference.Version.ToString());
}

public void Dispose()
{
//Do cleanup actions here
Expand Down