ModernUO/Projects/Server.Tests/Fixtures/ServerFixture.cs

32 lines
628 B
C#

using System;
namespace Server.Tests
{
public class ServerFixture : IDisposable
{
// Global setup
static ServerFixture()
{
Core.Expansion = Expansion.EJ;
// Load Configurations
ServerConfiguration.Load(true);
// Configure / Initialize
TestMapDefinitions.ConfigureTestMapDefinitions();
// Configure the world
World.Configure();
Timer.Init(0);
// Load the world
World.Load();
}
public void Dispose()
{
Timer.Init(0);
}
}
}