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>
This commit is contained in:
pathetic meowmeow
2025-09-14 01:30:17 -04:00
committed by GitHub
parent 2820882754
commit d9c24b3d10
8 changed files with 365 additions and 355 deletions

View File

@@ -9,16 +9,20 @@ public sealed class SkinTonesTest
[Test]
public void TestHumanSkinToneValidity()
{
var strategy = new HumanTonedSkinColoration();
for (var i = 0; i <= 100; i++)
{
var color = SkinColor.HumanSkinTone(i);
Assert.That(SkinColor.VerifyHumanSkinTone(color));
var color = strategy.FromUnary(i);
Assert.That(strategy.VerifySkinColor(color));
}
}
[Test]
public void TestDefaultSkinToneValid()
{
Assert.That(SkinColor.VerifyHumanSkinTone(SkinColor.ValidHumanSkinTone));
var strategy = new HumanTonedSkinColoration();
Assert.That(strategy.VerifySkinColor(strategy.ValidHumanSkinTone));
}
}