Seal/abstract/virtual everything (#6739)

This commit is contained in:
mirrorcult
2022-02-16 00:23:23 -07:00
committed by GitHub
parent 4dfcacb86a
commit ec4d4688c7
1771 changed files with 2216 additions and 2164 deletions

View File

@@ -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)]

View File

@@ -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()

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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")]

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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;

View File

@@ -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()

View File

@@ -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)[]

View File

@@ -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";

View File

@@ -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));