Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user