mirror of
https://github.com/corvax-team/ss14-wl.git
synced 2026-06-09 10:06:46 +02:00
ec8f1d7ea4
* Add test result archiving to our test actions. * heck. * Don't waste tremendous amounts of storage. * Fix ReagentDataTest. * Reduce retention and increase compression on integration output. * Back to 7 days, depend on RT instead. * Poke. * Fix linter. * til. * Actually send YAMLLinter's pair messages into the void.
31 lines
1.0 KiB
C#
31 lines
1.0 KiB
C#
using Content.IntegrationTests.Tests.Interaction;
|
|
using Content.Shared.Chemistry.Reagent;
|
|
using Robust.Shared.Reflection;
|
|
using Robust.Shared.Serialization;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Content.IntegrationTests.Tests.Chemistry;
|
|
|
|
[TestFixture]
|
|
[TestOf(typeof(ReagentData))]
|
|
public sealed class ReagentDataTest
|
|
{
|
|
[Test]
|
|
public async Task ReagentDataIsSerializable()
|
|
{
|
|
await using var pair = await PoolManager.GetServerClient();
|
|
var reflection = pair.Server.ResolveDependency<IReflectionManager>();
|
|
|
|
Assert.Multiple(() =>
|
|
{
|
|
foreach (var instance in reflection.GetAllChildren(typeof(ReagentData)))
|
|
{
|
|
Assert.That(instance.HasCustomAttribute<NetSerializableAttribute>(), $"{instance} must have the NetSerializable attribute.");
|
|
Assert.That(instance.HasCustomAttribute<SerializableAttribute>(), $"{instance} must have the serializable attribute.");
|
|
}
|
|
});
|
|
|
|
await pair.CleanReturnAsync();
|
|
}
|
|
}
|