Humanoid patches (#11467)
* restores species/age on examine * makes the default human skin tone a little less green * ensures human skin tone verification is rounded to the nearest integer value, adds tests for ensuring all human skin tones are valid and that the default skin tone is valid
This commit is contained in:
24
Content.Tests/Shared/Preferences/Humanoid/SkinTonesTest.cs
Normal file
24
Content.Tests/Shared/Preferences/Humanoid/SkinTonesTest.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Content.Shared.Humanoid;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Content.Tests.Shared.Preferences.Humanoid;
|
||||
|
||||
[TestFixture]
|
||||
public sealed class SkinTonesTest
|
||||
{
|
||||
[Test]
|
||||
public void TestHumanSkinToneValidity()
|
||||
{
|
||||
for (var i = 0; i <= 100; i++)
|
||||
{
|
||||
var color = SkinColor.HumanSkinTone(i);
|
||||
Assert.That(SkinColor.VerifyHumanSkinTone(color));
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestDefaultSkinToneValid()
|
||||
{
|
||||
Assert.That(SkinColor.VerifyHumanSkinTone(SkinColor.ValidHumanSkinTone));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user