Fix content.integration tests warnings (#17817)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Content.Server.Procedural;
|
||||
using Content.Shared.Procedural;
|
||||
using NUnit.Framework;
|
||||
using Robust.Shared.Maths;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
@@ -14,7 +12,7 @@ public sealed class DungeonTests
|
||||
[Test]
|
||||
public async Task TestDungeonRoomPackBounds()
|
||||
{
|
||||
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings{NoClient = true});
|
||||
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings { NoClient = true });
|
||||
var protoManager = pairTracker.Pair.Server.ResolveDependency<IPrototypeManager>();
|
||||
|
||||
await pairTracker.Pair.Server.WaitAssertion(() =>
|
||||
@@ -64,7 +62,7 @@ public sealed class DungeonTests
|
||||
[Test]
|
||||
public async Task TestDungeonPresets()
|
||||
{
|
||||
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings{NoClient = true});
|
||||
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings { NoClient = true });
|
||||
var protoManager = pairTracker.Pair.Server.ResolveDependency<IPrototypeManager>();
|
||||
|
||||
await pairTracker.Pair.Server.WaitAssertion(() =>
|
||||
@@ -86,9 +84,11 @@ public sealed class DungeonTests
|
||||
// Assert that anything exists at this size
|
||||
var rotated = new Vector2i(pack.Size.Y, pack.Size.X);
|
||||
|
||||
Assert.That(sizes.Contains(pack.Size) || sizes.Contains(rotated), $"Didn't find any dungeon room prototypes for {pack.Size} for {preset.ID} index {i}");
|
||||
|
||||
Assert.That(pack.Bottom, Is.GreaterThanOrEqualTo(0), "All dungeon room packs need their y-axis to be above 0!");
|
||||
Assert.Multiple(() =>
|
||||
{
|
||||
Assert.That(sizes.Contains(pack.Size) || sizes.Contains(rotated), $"Didn't find any dungeon room prototypes for {pack.Size} for {preset.ID} index {i}");
|
||||
Assert.That(pack.Bottom, Is.GreaterThanOrEqualTo(0), "All dungeon room packs need their y-axis to be above 0!");
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user