Skip to content

Commit

Permalink
Add Incremental Check to test
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Jan 16, 2024
1 parent f24bc91 commit c5d9a06
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using NUnit.Framework;
using System.IO;
using System.Text;
Expand Down Expand Up @@ -66,6 +67,12 @@ public void BuildApplicationWithAssetPack ([Values (true, false)] bool isRelease
appBuilder.Output.AssertTargetIsSkipped ("_CreateAssetPackManifests");
appBuilder.Output.AssertTargetIsSkipped ("_BuildAssetPacks");
appBuilder.Output.AssertTargetIsSkipped ("_GenerateAndroidAssetsDir");
asset3.TextContent = () => "Asset3 Updated";
asset3.Timestamp = DateTime.UtcNow.AddSeconds(1);
Assert.IsTrue (appBuilder.Build (app, doNotCleanupOnUpdate: true, saveProject: false), $"{app.ProjectName} should succeed");
appBuilder.Output.AssertTargetIsNotSkipped ("_CreateAssetPackManifests");
appBuilder.Output.AssertTargetIsNotSkipped ("_BuildAssetPacks");
appBuilder.Output.AssertTargetIsNotSkipped ("_GenerateAndroidAssetsDir");
app.OtherBuildItems.Remove (asset3);
Assert.IsTrue (appBuilder.Build (app, doNotCleanupOnUpdate: true), $"{app.ProjectName} should succeed");
using (var zip = ZipHelper.OpenZip (aab)) {
Expand Down

0 comments on commit c5d9a06

Please sign in to comment.