Add global usings (#668)

* Use global usings

* Fix namespace declarations for test projects
This commit is contained in:
Patrik Svensson
2021-12-23 16:50:31 +01:00
committed by GitHub
parent eb6a9d8d04
commit 52c1d9122b
514 changed files with 10659 additions and 12441 deletions

View File

@@ -1,23 +1,20 @@
using Spectre.Console.Cli;
namespace Spectre.Console.Tests.Data;
namespace Spectre.Console.Tests.Data
public sealed class DogSettings : MammalSettings
{
public sealed class DogSettings : MammalSettings
[CommandArgument(0, "<AGE>")]
public int Age { get; set; }
[CommandOption("-g|--good-boy")]
public bool GoodBoy { get; set; }
public override ValidationResult Validate()
{
[CommandArgument(0, "<AGE>")]
public int Age { get; set; }
[CommandOption("-g|--good-boy")]
public bool GoodBoy { get; set; }
public override ValidationResult Validate()
if (Name == "Tiger")
{
if (Name == "Tiger")
{
return ValidationResult.Error("Tiger is not a dog name!");
}
return ValidationResult.Success();
return ValidationResult.Error("Tiger is not a dog name!");
}
return ValidationResult.Success();
}
}
}