mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 17:02:51 +08:00

Also moves tests to `./test` which makes it possible for all test projects to share the same .editorconfig files and similar.
18 lines
421 B
C#
18 lines
421 B
C#
using System;
|
|
using Spectre.Console.Cli;
|
|
|
|
namespace Spectre.Console.Tests.Data
|
|
{
|
|
public sealed class ThrowingCommand : Command<ThrowingCommandSettings>
|
|
{
|
|
public override int Execute(CommandContext context, ThrowingCommandSettings settings)
|
|
{
|
|
throw new InvalidOperationException("W00t?");
|
|
}
|
|
}
|
|
|
|
public sealed class ThrowingCommandSettings : CommandSettings
|
|
{
|
|
}
|
|
}
|