jellyfin/tests/Jellyfin.Model.Tests/Extensions/StringHelperTests.cs

19 lines
489 B
C#
Raw Normal View History

2020-04-19 16:27:07 +00:00
using MediaBrowser.Model.Extensions;
using Xunit;
namespace Jellyfin.Model.Tests.Extensions
{
public class StringHelperTests
{
[Theory]
[InlineData("", "")]
[InlineData("banana", "Banana")]
[InlineData("Banana", "Banana")]
[InlineData("ä", "Ä")]
2020-04-21 08:21:20 +00:00
public void StringHelper_ValidArgs_Success(string input, string expectedResult)
2020-04-19 16:27:07 +00:00
{
2020-04-21 08:21:20 +00:00
Assert.Equal(expectedResult, StringHelper.FirstToUpper(input));
2020-04-19 16:27:07 +00:00
}
}
}