mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-01 17:47:24 +02:00
Robust.UnitTesting was both ALL tests for RT, and also API surface for content tests. Tests are now split into separate projects as appropriate, and the API side has also been split off.
29 lines
797 B
C#
29 lines
797 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>();
|
|
|
|
protected override Assembly[] GetContentAssemblies()
|
|
{
|
|
return Assemblies;
|
|
}
|
|
|
|
[OneTimeSetUp]
|
|
public void OneTimeSetup()
|
|
{
|
|
Serialization.Initialize();
|
|
}
|
|
}
|
|
}
|