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.
27 lines
635 B
C#
27 lines
635 B
C#
using Shouldly;
|
|
using Spectre.Console.Cli;
|
|
using Xunit;
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|