Files

28 lines
823 B
C#
Raw Permalink Normal View History

2023-12-31 11:09:44 +00:00
using Velopack.Vpk.Commands;
2023-12-17 17:00:38 +00:00
2023-12-31 11:09:44 +00:00
namespace Velopack.CommandLine.Tests;
2022-09-24 00:05:25 -07:00
2023-12-15 17:27:33 +00:00
public abstract class BaseCommandTests<T> : TempFileTestBase
where T : BaseCommand, new()
2022-09-24 00:05:25 -07:00
{
2023-12-15 17:27:33 +00:00
public virtual bool ShouldBeNonEmptyReleaseDir => false;
2023-12-30 17:30:10 +00:00
//[Fact]
//public void ReleaseDirectory_WithDirectory_ParsesValue()
//{
// var releaseDirectory = CreateTempDirectory();
2022-12-05 14:12:15 +00:00
2023-12-30 17:30:10 +00:00
// if (ShouldBeNonEmptyReleaseDir)
// CreateTempFile(releaseDirectory, "anything");
2022-12-05 14:12:15 +00:00
2023-12-30 17:30:10 +00:00
// BaseCommand command = new T();
2022-12-05 14:12:15 +00:00
2023-12-30 17:30:10 +00:00
// var cli = GetRequiredDefaultOptions() + $"--outputDir \"{releaseDirectory.FullName}\"";
// var parseResult = command.ParseAndApply(cli);
2022-09-24 00:05:25 -07:00
2023-12-30 17:30:10 +00:00
// Assert.Equal(releaseDirectory.FullName, command.ReleaseDirectory);
//}
2023-12-15 17:27:33 +00:00
protected virtual string GetRequiredDefaultOptions() => "";
2022-09-24 00:05:25 -07:00
}