diff options
| author | crobibero <cody@robibe.ro> | 2020-06-13 15:21:13 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-06-13 15:21:13 -0600 |
| commit | 9ee6ea86ea12e177f620f3cae8d149b41475416a (patch) | |
| tree | 05b09b609f0b3a72fd670d2bbcdc0c0975f8d36e /tests/Jellyfin.Model.Tests/Extensions/StringHelperTests.cs | |
| parent | a4455af3e90b440defb4da6de980f287b8a348c6 (diff) | |
| parent | 0011e8df47380936742302ef40639a4626a780ed (diff) | |
Merge remote-tracking branch 'upstream/api-migration' into api-localization
Diffstat (limited to 'tests/Jellyfin.Model.Tests/Extensions/StringHelperTests.cs')
| -rw-r--r-- | tests/Jellyfin.Model.Tests/Extensions/StringHelperTests.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/Jellyfin.Model.Tests/Extensions/StringHelperTests.cs b/tests/Jellyfin.Model.Tests/Extensions/StringHelperTests.cs new file mode 100644 index 000000000..51633e157 --- /dev/null +++ b/tests/Jellyfin.Model.Tests/Extensions/StringHelperTests.cs @@ -0,0 +1,19 @@ +using System; +using MediaBrowser.Model.Extensions; +using Xunit; + +namespace Jellyfin.Model.Tests.Extensions +{ + public class StringHelperTests + { + [Theory] + [InlineData("", "")] + [InlineData("banana", "Banana")] + [InlineData("Banana", "Banana")] + [InlineData("ä", "Ä")] + public void StringHelper_ValidArgs_Success(string input, string expectedResult) + { + Assert.Equal(expectedResult, StringHelper.FirstToUpper(input)); + } + } +} |
