using Server.Tests.Terrain;
using Xunit;
namespace Server.Tests;
///
/// Fixture for all server tests. The host runs on generated tile data and terrain (see ).
///
[CollectionDefinition("Sequential Server Tests", DisableParallelization = true)]
public class ServerFixture : ICollectionFixture
{
/// A tile with the Surface flag.
public static ushort SurfaceTileId => TestTiles.Floor;
/// A tile with the Impassable flag.
public static ushort ImpassableTileId => TestTiles.Rock;
/// A tile with the Wet flag (water).
public static ushort WetTileId => TestTiles.Water;
/// A tile with both Surface and Impassable flags (tables, furniture).
public static ushort SurfaceImpassableTileId => TestTiles.Counter;
// Global init runs exactly once via the shared, guarded TestServerInitializer. The single
// bootstrap owns global state for the lifetime of the test host, so there is no
// per-collection teardown — matching UOContent.Tests' TestServerInitializer pattern.
public ServerFixture() => TestServerInitializer.Initialize();
}