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

@@ -12,7 +12,7 @@ namespace Content.Tests.Server.Jobs
[TestFixture]
[TestOf(typeof(Job<>))]
[TestOf(typeof(JobQueue))]
public class JobQueueTest : RobustUnitTest
public sealed class JobQueueTest : RobustUnitTest
{
/// <summary>
/// Test a job that immediately exits with a value.
@@ -128,7 +128,7 @@ namespace Content.Tests.Server.Jobs
Assert.That(job.Result, Is.Null);
}
private class DebugStopwatch : IStopwatch
private sealed class DebugStopwatch : IStopwatch
{
public TimeSpan Elapsed { get; set; }
@@ -143,7 +143,7 @@ namespace Content.Tests.Server.Jobs
}
}
private class ImmediateJob : Job<string>
private sealed class ImmediateJob : Job<string>
{
public ImmediateJob() : base(0)
{
@@ -155,7 +155,7 @@ namespace Content.Tests.Server.Jobs
}
}
private class LongJob : Job<string>
private sealed class LongJob : Job<string>
{
private readonly DebugStopwatch _stopwatch;
private readonly DebugStopwatch _stopwatchB;
@@ -187,7 +187,7 @@ namespace Content.Tests.Server.Jobs
}
}
private class LongJobQueue : JobQueue
private sealed class LongJobQueue : JobQueue
{
public LongJobQueue(IStopwatch swB) : base(swB)
{
@@ -196,7 +196,7 @@ namespace Content.Tests.Server.Jobs
public override double MaxTime => 0.9;
}
private class WaitingJob : Job<string>
private sealed class WaitingJob : Job<string>
{
private readonly Task _t;

View File

@@ -20,7 +20,7 @@ using Robust.Shared.Serialization.Manager;
namespace Content.Tests.Server.Preferences
{
[TestFixture]
public class ServerDbSqliteTests : ContentUnitTest
public sealed class ServerDbSqliteTests : ContentUnitTest
{
private const string Prototypes = @"
- type: dataset

View File

@@ -4,7 +4,7 @@ using NUnit.Framework;
namespace Content.Tests.Server.Utility
{
public class IPAddressExtTest
public sealed class IPAddressExtTest
{
[Test]
[TestCase("192.168.5.85/24", "192.168.5.1")]