Skip to content

Commit

Permalink
Fix unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
torbacz committed Sep 5, 2024
1 parent aa6a2d0 commit ce7803f
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public async Task ExtractAllPackagesThatNeedToBeUpdated_Should_UpdatePatchVersio
{
// Arrange
var path = Path.Combine("Projects", "SampleProject.csproj");
var config = new Project() { Version = VersionUpdateType.Patch, };
var config = new Project() { Version = VersionUpdateType.Patch, Type = ProjectType.DotNet };
config.ApplyDefaultValue();
var expectedResult = new List<DependencyDetails>()
{
new("Serilog", new Version(3,0,1, 0))
Expand All @@ -67,7 +68,8 @@ public async Task ExtractAllPackagesThatNeedToBeUpdated_Should_UpdateMinorVersio
{
// Arrange
var path = Path.Combine("Projects", "SampleProject.csproj");
var config = new Project() { Version = VersionUpdateType.Minor, };
var config = new Project() { Version = VersionUpdateType.Minor, Type = ProjectType.DotNet };
config.ApplyDefaultValue();
var expectedResult = new List<DependencyDetails>()
{
new("Serilog", new Version(3,1,1, 0))
Expand All @@ -88,7 +90,8 @@ public async Task ExtractAllPackagesThatNeedToBeUpdated_Should_UpdateMajorVersio
{
// Arrange
var path = Path.Combine("Projects", "SampleProject.csproj");
var config = new Project() { Version = VersionUpdateType.Major, };
var config = new Project() { Version = VersionUpdateType.Major, Type = ProjectType.DotNet };
config.ApplyDefaultValue();
var expectedResult = new List<DependencyDetails>()
{
new("Serilog", new Version(4,0,1, 0))
Expand Down

0 comments on commit ce7803f

Please sign in to comment.