mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
24 lines
813 B
C#
24 lines
813 B
C#
using NUnit.Framework;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Robust.UnitTesting.Shared.Utility
|
|
{
|
|
[Parallelizable(ParallelScope.All)]
|
|
[TestFixture]
|
|
[TestOf(typeof(CaseConversion))]
|
|
public sealed class CaseConversionTest
|
|
{
|
|
[Test]
|
|
[TestCase("FooBar", ExpectedResult = "foo-bar")]
|
|
[TestCase("Foo", ExpectedResult = "foo")]
|
|
[TestCase("FooBarBaz", ExpectedResult = "foo-bar-baz")]
|
|
[TestCase("AssistantPDA", ExpectedResult = "assistant-pda")] // incorrect abbreviations
|
|
[TestCase("AssistantPda", ExpectedResult = "assistant-pda")] // correct abbreviations
|
|
[TestCase("FileIO", ExpectedResult = "file-io")]
|
|
public string PascalToKebab(string input)
|
|
{
|
|
return CaseConversion.PascalToKebab(input);
|
|
}
|
|
}
|
|
}
|