[lang-ref] ( is_lower ) ( csharp )

[Theory]
[InlineData("ABC", false)]
[InlineData("Abc", false)]
[InlineData("abc", true)]
[InlineData("abc def", false)] // space is not lower
[InlineData(" ", false)]
[InlineData("", true)] // true if empty ( this is just the behavior of [].All() )
public void TestIsLower(string text, bool expected)
{
    // text.All(char.IsLower)

    bool actual = text.All(char.IsLower);


    Assert.Equal(expected, actual);
}