Decouple Spectre from Packaging, refactor command/compat

This commit is contained in:
Caelan Sayler
2024-01-25 21:28:18 +00:00
parent 29a5db626b
commit 90d685bb21
43 changed files with 444 additions and 535 deletions

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Velopack.Vpk;
namespace Velopack.CommandLine.Tests
{
public class AutoMapperTests
{
[Fact]
public void AutoMapperConfigIsValid()
{
CommandMapper.Validate();
}
}
}

View File

@@ -68,7 +68,7 @@ public class GitHubDownloadCommandTests : GitHubCommandTests<GitHubDownloadComma
string cli = GetRequiredDefaultOptions() + "--pre";
ParseResult parseResult = command.ParseAndApply(cli);
Assert.True(command.Pre);
Assert.True(command.Prerelease);
}
}

View File

@@ -40,7 +40,7 @@ public abstract class ReleaseCommandTests<T> : BaseCommandTests<T>
string cli = GetRequiredDefaultOptions() + "--delta none";
ParseResult parseResult = command.ParseAndApply(cli);
Assert.True(command.Delta == Packaging.DeltaMode.None);
Assert.True(command.DeltaMode == Packaging.DeltaMode.None);
}
[Fact]