mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-25 22:36:59 -04:00
Clean up FirstCharacterToLower extension + tests
This commit is contained in:
+3
-1
@@ -5,11 +5,13 @@ using NzbDrone.Common.Extensions;
|
||||
namespace NzbDrone.Common.Test.ExtensionTests.StringExtensionTests
|
||||
{
|
||||
[TestFixture]
|
||||
public class FirstCharcacterToLowerFixture
|
||||
public class FirstCharacterToLowerFixture
|
||||
{
|
||||
[TestCase("Hello", "hello")]
|
||||
[TestCase("CamelCase", "camelCase")]
|
||||
[TestCase("A Full Sentence", "a Full Sentence")]
|
||||
[TestCase("", "")]
|
||||
[TestCase(null, "")]
|
||||
public void should_lower_case_first_character(string input, string expected)
|
||||
{
|
||||
input.FirstCharToLower().Should().Be(expected);
|
||||
+2
@@ -10,6 +10,8 @@ namespace NzbDrone.Common.Test.ExtensionTests.StringExtensionTests
|
||||
[TestCase("hello", "Hello")]
|
||||
[TestCase("camelCase", "CamelCase")]
|
||||
[TestCase("a full sentence", "A full sentence")]
|
||||
[TestCase("", "")]
|
||||
[TestCase(null, "")]
|
||||
public void should_capitalize_first_character(string input, string expected)
|
||||
{
|
||||
input.FirstCharToUpper().Should().Be(expected);
|
||||
|
||||
Reference in New Issue
Block a user