Files
RobustToolbox/Robust.Shared.Tests/Utility/CaseConversionTest.cs
PJB3005 788e9386fd Split up test project
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.
2025-12-16 01:36:53 +01:00

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);
}
}
}