Files
tbd-station-14/Content.Tests/Shared/Preferences/Humanoid/SkinTonesTest.cs
pathetic meowmeow d9c24b3d10 De-enumify humanoid species skin colours (#39175)
* De-enumify humanoid species skin colours

* Change index to resolve

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
2025-09-13 22:30:17 -07:00

29 lines
647 B
C#

using Content.Shared.Humanoid;
using NUnit.Framework;
namespace Content.Tests.Shared.Preferences.Humanoid;
[TestFixture]
public sealed class SkinTonesTest
{
[Test]
public void TestHumanSkinToneValidity()
{
var strategy = new HumanTonedSkinColoration();
for (var i = 0; i <= 100; i++)
{
var color = strategy.FromUnary(i);
Assert.That(strategy.VerifySkinColor(color));
}
}
[Test]
public void TestDefaultSkinToneValid()
{
var strategy = new HumanTonedSkinColoration();
Assert.That(strategy.VerifySkinColor(strategy.ValidHumanSkinTone));
}
}