mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 08:52:50 +08:00
22 lines
508 B
C#
22 lines
508 B
C#
namespace Spectre.Console.Tests.Unit.Cli;
|
|
|
|
public sealed partial class CommandAppTests
|
|
{
|
|
[Fact]
|
|
public void Should_Apply_Case_Sensitivity_For_Everything_By_Default()
|
|
{
|
|
// Given
|
|
var app = new CommandApp();
|
|
|
|
// When
|
|
var defaultSensitivity = CaseSensitivity.None;
|
|
app.Configure(config =>
|
|
{
|
|
defaultSensitivity = config.Settings.CaseSensitivity;
|
|
});
|
|
|
|
// Then
|
|
defaultSensitivity.ShouldBe(CaseSensitivity.All);
|
|
}
|
|
}
|