mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
Drop ICharacterProfile/ICharacterAppearance interfaces (#42661)
This commit is contained in:
committed by
Coryler
parent
abb13de3dd
commit
b81a0c7a85
@@ -75,17 +75,11 @@ public sealed class CharacterCreationTest
|
||||
await pair.CleanReturnAsync();
|
||||
}
|
||||
|
||||
private void AssertEqual(ICharacterProfile clientCharacter, HumanoidCharacterProfile b)
|
||||
private void AssertEqual(HumanoidCharacterProfile a, HumanoidCharacterProfile b)
|
||||
{
|
||||
if (clientCharacter.MemberwiseEquals(b))
|
||||
if (a.MemberwiseEquals(b))
|
||||
return;
|
||||
|
||||
if (clientCharacter is not HumanoidCharacterProfile a)
|
||||
{
|
||||
Assert.Fail($"Not a {nameof(HumanoidCharacterProfile)}");
|
||||
return;
|
||||
}
|
||||
|
||||
Assert.Multiple(() =>
|
||||
{
|
||||
Assert.That(a.Name, Is.EqualTo(b.Name));
|
||||
@@ -107,7 +101,7 @@ public sealed class CharacterCreationTest
|
||||
|
||||
private void AssertEqual(HumanoidCharacterAppearance a, HumanoidCharacterAppearance b)
|
||||
{
|
||||
if (a.MemberwiseEquals(b))
|
||||
if (a.Equals(b))
|
||||
return;
|
||||
|
||||
Assert.That(a.EyeColor, Is.EqualTo(b.EyeColor));
|
||||
|
||||
Reference in New Issue
Block a user