mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 11:40:52 +01:00
25 lines
735 B
C#
25 lines
735 B
C#
using System;
|
|
using System.Reflection;
|
|
using NUnit.Framework;
|
|
using Robust.Shared.IoC;
|
|
using Robust.Shared.Reflection;
|
|
using Robust.Shared.Serialization.Manager;
|
|
|
|
namespace Robust.UnitTesting.Shared.Serialization
|
|
{
|
|
public abstract class SerializationTest : RobustUnitTest
|
|
{
|
|
protected IReflectionManager Reflection => IoCManager.Resolve<IReflectionManager>();
|
|
protected ISerializationManager Serialization => IoCManager.Resolve<ISerializationManager>();
|
|
|
|
protected virtual Assembly[] Assemblies => Array.Empty<Assembly>();
|
|
|
|
[OneTimeSetUp]
|
|
public void OneTimeSetup()
|
|
{
|
|
Reflection.LoadAssemblies(Assemblies);
|
|
Serialization.Initialize();
|
|
}
|
|
}
|
|
}
|