Fixed: Add Tests for FirstCharTo

This commit is contained in:
Mark McDowall
2019-06-29 15:33:49 -07:00
committed by Qstick
parent 4af18f7d4a
commit f868e8b964
6 changed files with 122 additions and 2 deletions
@@ -0,0 +1,20 @@
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);
}
}
}