fix: Fixes JSON TypeConverter so that it can deserialize full name types (#1466)

This commit is contained in:
mdodkins 2023-08-22 05:25:09 +01:00 committed by GitHub
parent 52ca1fe686
commit 976680699c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 65 additions and 24 deletions

View file

@ -1,35 +1,39 @@
using System;
using System.Reflection;
namespace Server.Tests
namespace Server.Tests;
internal class ServerFixture : IDisposable
{
internal class ServerFixture : IDisposable
// Global setup
static ServerFixture()
{
// Global setup
static ServerFixture()
{
Core.Assembly = Assembly.GetExecutingAssembly();
Core.LoopContext = new EventLoopContext();
Core.Expansion = Expansion.EJ;
Core.Assembly = Assembly.GetExecutingAssembly(); // Server.Tests.dll
// Load Configurations
ServerConfiguration.Load(true);
// Load Configurations
ServerConfiguration.Load(true);
// Configure / Initialize
TestMapDefinitions.ConfigureTestMapDefinitions();
// Load an empty assembly list into the resolver
ServerConfiguration.AssemblyDirectories.Add(Core.BaseDirectory);
AssemblyHandler.LoadAssemblies(new[]{ "ModernUO.dll" });
// Configure the world
World.Configure();
Core.LoopContext = new EventLoopContext();
Core.Expansion = Expansion.EJ;
Timer.Init(0);
// Configure / Initialize
TestMapDefinitions.ConfigureTestMapDefinitions();
// Load the world
World.Load();
}
// Configure the world
World.Configure();
public void Dispose()
{
Timer.Init(0);
}
Timer.Init(0);
// Load the world
World.Load();
}
public void Dispose()
{
Timer.Init(0);
}
}