mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-21 22:25:03 -04:00
21 lines
593 B
C#
21 lines
593 B
C#
using FluentAssertions;
|
|
using NUnit.Framework;
|
|
using NzbDrone.Common.Extensions;
|
|
|
|
namespace NzbDrone.Common.Test.ExtensionTests.StringExtensionTests
|
|
{
|
|
[TestFixture]
|
|
public class FirstCharcacterToUpperFixture
|
|
{
|
|
[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);
|
|
}
|
|
}
|
|
}
|