From c8121589b9fd406b8e3d5eef990a9a4d235f3a0a Mon Sep 17 00:00:00 2001 From: Pedro Jesus Date: Fri, 15 Sep 2023 20:37:05 -0300 Subject: [PATCH] test: update tests to reflect changes --- .../Resizetizer.Extensions.Sample.Skia.WPF.csproj | 2 +- .../test/UnitTests/GeneratePackageAppxManifestTests.cs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/samples/NewTemplate/Resizetizer.Extensions.Sample.Skia.WPF/Resizetizer.Extensions.Sample.Skia.WPF.csproj b/samples/NewTemplate/Resizetizer.Extensions.Sample.Skia.WPF/Resizetizer.Extensions.Sample.Skia.WPF.csproj index d94bd504..3be5d8ff 100644 --- a/samples/NewTemplate/Resizetizer.Extensions.Sample.Skia.WPF/Resizetizer.Extensions.Sample.Skia.WPF.csproj +++ b/samples/NewTemplate/Resizetizer.Extensions.Sample.Skia.WPF/Resizetizer.Extensions.Sample.Skia.WPF.csproj @@ -43,7 +43,7 @@ <_ResizetizerSplashScreenPath>$(_UnoIntermediateImages)splash_screen.scale-125.png <_ResizetizerAppIconPath>$(_UnoIntermediateImages)iconapp.ico - <_ResizetizerAppIconImagesPath>$(_UnoIntermediateImages)\Icons\iconapp.png + <_ResizetizerAppIconImagesPath>$(_UnoIntermediateImages)iconapp.png diff --git a/src/Resizetizer/test/UnitTests/GeneratePackageAppxManifestTests.cs b/src/Resizetizer/test/UnitTests/GeneratePackageAppxManifestTests.cs index 297f12eb..58966c12 100644 --- a/src/Resizetizer/test/UnitTests/GeneratePackageAppxManifestTests.cs +++ b/src/Resizetizer/test/UnitTests/GeneratePackageAppxManifestTests.cs @@ -1,6 +1,7 @@ #nullable enable using Microsoft.Build.Framework; using Microsoft.Build.Utilities; +using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml.Linq; @@ -90,7 +91,7 @@ public void CorrectGenerationWhenUserSpecifyBackgroundColor() var expected = "typicalWithNoBackground"; var appIcon = new TaskItem("images\\appicon.svg"); appIcon.SetMetadata("ForegroundFile", "images\\appiconfg.svg"); - appIcon.SetMetadata("ProjectDirectory", Directory.GetCurrentDirectory() + "\\"); + appIcon.SetMetadata("Link", "images\\appicon.svg"); appIcon.SetMetadata("IsAppIcon", "true"); var splashScreen = new TaskItem("images/dotnet_bot.svg"); @@ -106,6 +107,8 @@ public void CorrectGenerationWhenUserSpecifyBackgroundColor() appIcon: appIcon, splashScreen: splashScreen); + + var success = task.Execute(); Assert.True(success, $"{task.GetType()}.Execute() failed: " + LogErrorEvents.FirstOrDefault()?.Message);