mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Decouple Spectre from Packaging, refactor command/compat
This commit is contained in:
18
test/Velopack.CommandLine.Tests/AutoMapperTests.cs
Normal file
18
test/Velopack.CommandLine.Tests/AutoMapperTests.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user