fix: Fixes JSON TypeConverter so that it can deserialize full name types (#1466)
This commit is contained in:
parent
52ca1fe686
commit
976680699c
4 changed files with 65 additions and 24 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue