Files
RobustToolbox/Robust.UnitTesting/Shared/Serialization/SerializationTest.cs
PJB3005 788e9386fd Split up test project
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.
2025-12-16 01:36:53 +01:00

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();
}
}
}