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:
committed by
GitHub
parent
2820882754
commit
d9c24b3d10
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user