Fix content.integration tests warnings (#17817)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using System.Reflection;
|
||||
using Content.Shared.FixedPoint;
|
||||
using NUnit.Framework;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.Serialization.Markdown.Mapping;
|
||||
using Robust.Shared.Serialization.Markdown.Value;
|
||||
@@ -35,8 +34,10 @@ namespace Content.IntegrationTests.Tests.Chemistry
|
||||
public void SerializeNullableValueTest()
|
||||
{
|
||||
var node = Serialization.WriteValue<FixedPoint2?>(FixedPoint2.New(2.5f));
|
||||
#pragma warning disable NUnit2045 // Interdependent assertions
|
||||
Assert.That(node is ValueDataNode);
|
||||
Assert.That(((ValueDataNode)node).Value, Is.EqualTo("2.5"));
|
||||
Assert.That(((ValueDataNode) node).Value, Is.EqualTo("2.5"));
|
||||
#pragma warning restore NUnit2045
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
Reference in New Issue
Block a user