mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-08 15:27:27 +00:00
29 lines
850 B
C#
29 lines
850 B
C#
using Content.IntegrationTests.Fixtures;
|
|
using Content.Server._DV.Footprints.Components;
|
|
|
|
namespace Content.IntegrationTests.Tests._DV;
|
|
|
|
public sealed class FootPrintsTest : GameTest
|
|
{
|
|
[Test]
|
|
public async Task ValidatePrototypes()
|
|
{
|
|
var pair = Pair;
|
|
var server = pair.Server;
|
|
|
|
var protos = pair.GetPrototypesWithComponent<FootPrintsComponent>();
|
|
|
|
await server.WaitAssertion(() =>
|
|
{
|
|
Assert.Multiple(() =>
|
|
{
|
|
foreach (var (proto, comp) in protos)
|
|
{
|
|
Assert.That(comp.StepSize, Is.Positive, $"{proto.ID} holds invalid value for FootPrints stepSize.");
|
|
Assert.That(comp.DragSize, Is.Positive, $"{proto.ID} holds invalid value for FootPrints dragSize.");
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|