Skip to content

Commit

Permalink
test: update tests to reflect changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pictos authored and nickrandolph committed Sep 21, 2023
1 parent f2b34e2 commit c812158
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<PropertyGroup>
<_ResizetizerSplashScreenPath>$(_UnoIntermediateImages)splash_screen.scale-125.png</_ResizetizerSplashScreenPath>
<_ResizetizerAppIconPath>$(_UnoIntermediateImages)iconapp.ico</_ResizetizerAppIconPath>
<_ResizetizerAppIconImagesPath>$(_UnoIntermediateImages)\Icons\iconapp.png</_ResizetizerAppIconImagesPath>
<_ResizetizerAppIconImagesPath>$(_UnoIntermediateImages)iconapp.png</_ResizetizerAppIconImagesPath>
</PropertyGroup>
<Message Text="Validating local assets at '$(_ResizetizerIntermediateOutputRoot)'" Importance="high" />
<Error Condition="!Exists('$(_ResizetizerSplashScreenPath)')" Text="SplashScreen file wasn't created." />
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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");
Expand All @@ -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);

Expand Down

0 comments on commit c812158

Please sign in to comment.