ModernUO/Projects/Server.Tests/Fixtures/ServerFixture.cs
Kamron Batman da01f5b8a5
fix(core): Fixes flow for saves, adds logging and configurations (#513)
- [X] Adds better diagnostics for world saves.
- [X] Adds world save stats.
- [X] World now saves to a temporary folder.
- [X] Backups are now stored by timestamp.
- [X] Backup is now made after the world save.
- [X] "Saves" folder is now configurable.
- [X] Temporary folder is now configurable.
- [X] Backups folder is now configurable.
2021-02-20 19:32:08 -08:00

29 lines
573 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();
// Load the world
World.Load();
}
public void Dispose()
{
}
}
}