From ddfa12808c254c6f8c2c01d36cba5d56f2f59662 Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Wed, 17 Dec 2025 16:55:33 +0100 Subject: [PATCH] Fix some roslyn tests --- Robust.Analyzers.Tests/PrototypeInstantiationAnalyzerTest.cs | 1 - .../PrototypeNetSerializableAnalyzerTest.cs | 1 - .../Serialization/Manager/Attributes/DataFieldAttribute.cs | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Robust.Analyzers.Tests/PrototypeInstantiationAnalyzerTest.cs b/Robust.Analyzers.Tests/PrototypeInstantiationAnalyzerTest.cs index f854bf1bc..6be2114d9 100644 --- a/Robust.Analyzers.Tests/PrototypeInstantiationAnalyzerTest.cs +++ b/Robust.Analyzers.Tests/PrototypeInstantiationAnalyzerTest.cs @@ -9,7 +9,6 @@ namespace Robust.Analyzers.Tests; [Parallelizable(ParallelScope.All | ParallelScope.Fixtures)] [TestFixture] [TestOf(typeof(PrototypeInstantiationAnalyzer))] -[Ignore("guh")] public sealed class PrototypeInstantiationAnalyzerTest { private static Task Verifier(string code, params DiagnosticResult[] expected) diff --git a/Robust.Analyzers.Tests/PrototypeNetSerializableAnalyzerTest.cs b/Robust.Analyzers.Tests/PrototypeNetSerializableAnalyzerTest.cs index 9e236b258..9727d9c71 100644 --- a/Robust.Analyzers.Tests/PrototypeNetSerializableAnalyzerTest.cs +++ b/Robust.Analyzers.Tests/PrototypeNetSerializableAnalyzerTest.cs @@ -9,7 +9,6 @@ namespace Robust.Analyzers.Tests; [Parallelizable(ParallelScope.All | ParallelScope.Fixtures)] [TestFixture] [TestOf(typeof(PrototypeNetSerializableAnalyzer))] -[Ignore("guh")] public sealed class PrototypeNetSerializableAnalyzerTest { private static Task Verifier(string code, params DiagnosticResult[] expected) diff --git a/Robust.Shared/Serialization/Manager/Attributes/DataFieldAttribute.cs b/Robust.Shared/Serialization/Manager/Attributes/DataFieldAttribute.cs index 1b61c2c89..c2702a523 100644 --- a/Robust.Shared/Serialization/Manager/Attributes/DataFieldAttribute.cs +++ b/Robust.Shared/Serialization/Manager/Attributes/DataFieldAttribute.cs @@ -1,8 +1,8 @@ using System; +#if !ROBUST_ANALYZERS_TEST +using Robust.Shared.ViewVariables; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; using Robust.Shared.Serialization.TypeSerializers.Interfaces; -using Robust.Shared.ViewVariables; -#if !ROBUST_ANALYZERS_TEST using JetBrains.Annotations; #endif