using System; using Robust.Client; using Robust.Server; using Robust.Shared.ContentPack; using Robust.Shared.IoC; namespace Robust.UnitTesting { public partial class RobustUnitTest { /// /// Registers all the types into the with /// private void RegisterIoC() { switch (Project) { case UnitTestProject.Client: ClientIoC.RegisterIoC(GameController.DisplayMode.Headless); break; case UnitTestProject.Server: ServerIoC.RegisterIoC(); break; default: throw new NotSupportedException($"Unknown testing project: {Project}"); } IoCManager.Register(overwrite: true); IoCManager.Register(overwrite: true); IoCManager.Register(overwrite: true); OverrideIoC(); IoCManager.BuildGraph(); } } }