Files
CliFx/CliFx.Tests/TestCommands/ExceptionCommand.cs
Alexey Golub 43a304bb26 Refactor tests
2019-08-25 17:28:54 +03:00

16 lines
383 B
C#

using System;
using System.Threading.Tasks;
using CliFx.Attributes;
using CliFx.Services;
namespace CliFx.Tests.TestCommands
{
[Command("exc")]
public class ExceptionCommand : ICommand
{
[CommandOption("msg", 'm')]
public string Message { get; set; }
public Task ExecuteAsync(IConsole console) => throw new Exception(Message);
}
}