mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Robust.UnitTesting was both ALL tests for RT, and also API surface for content tests. Tests are now split into separate projects as appropriate, and the API side has also been split off.
24 lines
809 B
C#
24 lines
809 B
C#
using NUnit.Framework;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Robust.Shared.Tests.Utility
|
|
{
|
|
[Parallelizable(ParallelScope.All)]
|
|
[TestFixture]
|
|
[TestOf(typeof(CaseConversion))]
|
|
internal 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);
|
|
}
|
|
}
|
|
}
|