Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -6,7 +6,7 @@ namespace Content.Tests.Shared.Administration
|
||||
{
|
||||
[TestFixture]
|
||||
[Parallelizable(ParallelScope.All)]
|
||||
public class AdminFlagsExtTest
|
||||
public sealed class AdminFlagsExtTest
|
||||
{
|
||||
[Test]
|
||||
[TestCase("ADMIN", AdminFlags.Admin)]
|
||||
|
||||
@@ -7,7 +7,7 @@ using NUnit.Framework;
|
||||
namespace Content.Tests.Shared.Administration.Logs;
|
||||
|
||||
[TestFixture]
|
||||
public class LogTypeTests
|
||||
public sealed class LogTypeTests
|
||||
{
|
||||
[Test]
|
||||
public void Unique()
|
||||
|
||||
@@ -12,7 +12,7 @@ using Robust.Shared.Utility;
|
||||
namespace Content.Tests.Shared.Alert
|
||||
{
|
||||
[TestFixture, TestOf(typeof(AlertsSystem))]
|
||||
public class AlertManagerTests : ContentUnitTest
|
||||
public sealed class AlertManagerTests : ContentUnitTest
|
||||
{
|
||||
const string PROTOTYPES = @"
|
||||
- type: alert
|
||||
|
||||
@@ -10,7 +10,7 @@ using Robust.Shared.Serialization.Manager;
|
||||
namespace Content.Tests.Shared.Alert
|
||||
{
|
||||
[TestFixture, TestOf(typeof(AlertOrderPrototype))]
|
||||
public class AlertOrderPrototypeTests : ContentUnitTest
|
||||
public sealed class AlertOrderPrototypeTests : ContentUnitTest
|
||||
{
|
||||
const string PROTOTYPES = @"
|
||||
- type: alertOrder
|
||||
|
||||
@@ -11,7 +11,7 @@ using YamlDotNet.RepresentationModel;
|
||||
namespace Content.Tests.Shared.Alert
|
||||
{
|
||||
[TestFixture, TestOf(typeof(AlertPrototype))]
|
||||
public class AlertPrototypeTests : ContentUnitTest
|
||||
public sealed class AlertPrototypeTests : ContentUnitTest
|
||||
{
|
||||
private const string Prototypes = @"
|
||||
- type: alert
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Content.Tests.Shared.Alert
|
||||
{
|
||||
[TestFixture]
|
||||
[TestOf(typeof(AlertsComponent))]
|
||||
public class ServerAlertsComponentTests : ContentUnitTest
|
||||
public sealed class ServerAlertsComponentTests : ContentUnitTest
|
||||
{
|
||||
const string PROTOTYPES = @"
|
||||
- type: alert
|
||||
|
||||
@@ -5,7 +5,7 @@ using NUnit.Framework;
|
||||
namespace Content.Tests.Shared.Chemistry
|
||||
{
|
||||
[TestFixture, TestOf(typeof(FixedPoint2))]
|
||||
public class FixedPoint2_Tests
|
||||
public sealed class FixedPoint2_Tests
|
||||
{
|
||||
[Test]
|
||||
[TestCase(1, "1")]
|
||||
|
||||
@@ -12,7 +12,7 @@ using YamlDotNet.RepresentationModel;
|
||||
namespace Content.Tests.Shared.Chemistry
|
||||
{
|
||||
[TestFixture, TestOf(typeof(ReagentPrototype))]
|
||||
public class ReagentPrototype_Tests : ContentUnitTest
|
||||
public sealed class ReagentPrototype_Tests : ContentUnitTest
|
||||
{
|
||||
[Test]
|
||||
public void DeserializeReagentPrototype()
|
||||
|
||||
@@ -8,7 +8,7 @@ using NUnit.Framework;
|
||||
namespace Content.Tests.Shared.Chemistry
|
||||
{
|
||||
[TestFixture, Parallelizable, TestOf(typeof(Solution))]
|
||||
public class Solution_Tests : ContentUnitTest
|
||||
public sealed class Solution_Tests : ContentUnitTest
|
||||
{
|
||||
[OneTimeSetUp]
|
||||
public void Setup()
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Content.Tests.Shared
|
||||
[TestOf(typeof(DamageSpecifier))]
|
||||
[TestOf(typeof(DamageModifierSetPrototype))]
|
||||
[TestOf(typeof(DamageGroupPrototype))]
|
||||
public class DamageTest : ContentUnitTest
|
||||
public sealed class DamageTest : ContentUnitTest
|
||||
{
|
||||
|
||||
static private Dictionary<string, float> _resistanceCoefficientDict = new()
|
||||
|
||||
@@ -9,7 +9,7 @@ using Robust.Shared.Reflection;
|
||||
namespace Content.Tests.Shared.Gamestates
|
||||
{
|
||||
[TestFixture]
|
||||
public class ComponentStateNullTest
|
||||
public sealed class ComponentStateNullTest
|
||||
{
|
||||
[Test]
|
||||
public void HandleComponentState_NullStates_NotThrow()
|
||||
@@ -52,7 +52,7 @@ namespace Content.Tests.Shared.Gamestates
|
||||
return reflection;
|
||||
}
|
||||
|
||||
private class FullReflectionManager : ReflectionManager
|
||||
private sealed class FullReflectionManager : ReflectionManager
|
||||
{
|
||||
protected override IEnumerable<string> TypePrefixes => Prefixes;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Content.Tests.Shared.Preferences.Job
|
||||
[TestFixture]
|
||||
[TestOf(typeof(JobPriority))]
|
||||
[TestOf(typeof(DbJobPriority))]
|
||||
public class JobPriorityTest
|
||||
public sealed class JobPriorityTest
|
||||
{
|
||||
[Test]
|
||||
public void JobPriorityEnumParityTest()
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Tests.Shared.Utility
|
||||
[Parallelizable]
|
||||
[TestFixture]
|
||||
[TestOf(typeof(ContentHelpers))]
|
||||
public class ContentHelpers_Test
|
||||
public sealed class ContentHelpers_Test
|
||||
{
|
||||
public static readonly IEnumerable<(double val, double max, int levels, int expected)> TestData =
|
||||
new (double, double, int, int)[]
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Content.Tests.Shared.Utility
|
||||
{
|
||||
[TestFixture]
|
||||
[TestOf(typeof(SharedRandomExtensions))]
|
||||
public class RandomExtensionsTests : ContentUnitTest
|
||||
public sealed class RandomExtensionsTests : ContentUnitTest
|
||||
{
|
||||
private const string TestDatasetId = "TestDataset";
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Content.Tests.Shared
|
||||
// Also a thinly veiled excuse to bloat the test count.
|
||||
|
||||
[TestFixture]
|
||||
public class WireHackingTest : RobustUnitTest
|
||||
public sealed class WireHackingTest : RobustUnitTest
|
||||
{
|
||||
public static IEnumerable<WireColor> ColorValues = (WireColor[]) Enum.GetValues(typeof(WireColor));
|
||||
public static IEnumerable<WireLetter> LetterValues = (WireLetter[]) Enum.GetValues(typeof(WireLetter));
|
||||
|
||||
Reference in New Issue
Block a user