Files
CliFx/CliFx.Tests/Commands/Invalid/InvalidCustomValidatorOptionCommand.cs
Oleksandr Shustov 4e12aefafb add tests
2020-11-07 21:46:32 +02:00

16 lines
428 B
C#

using CliFx.Attributes;
namespace CliFx.Tests.Commands.Invalid
{
[Command]
public class InvalidCustomValidatorOptionCommand : SelfSerializeCommandBase
{
[CommandOption('f', Validators = new[] { typeof(Validator) })]
public string? Option { get; set; }
public class Validator
{
public ValidationResult Validate(string value) => ValidationResult.Ok();
}
}
}