Remove obsolete TestPair.Pair (#19496)

This commit is contained in:
Visne
2023-08-25 02:56:51 +02:00
committed by GitHub
parent e1639b05b5
commit 3c667b6f7e
101 changed files with 717 additions and 727 deletions

View File

@@ -15,10 +15,6 @@ namespace Content.IntegrationTests.Pair;
/// </summary>
public sealed partial class TestPair
{
// TODO remove this.
[Obsolete("Field access is redundant")]
public TestPair Pair => this;
public readonly int Id;
private bool _initialized;
private TextWriter _testOut = default!;
@@ -31,7 +27,7 @@ public sealed partial class TestPair
public PoolTestLogHandler ServerLogHandler { get; private set; } = default!;
public PoolTestLogHandler ClientLogHandler { get; private set; } = default!;
public TestPair(int id)
{
Id = id;
@@ -72,7 +68,7 @@ public sealed partial class TestPair
await Client.WaitRunTicks(1);
}
}
public void Kill()
{
State = PairState.Dead;
@@ -100,7 +96,7 @@ public sealed partial class TestPair
throw new InvalidOperationException($"Pair is not ready to use. State: {State}");
State = PairState.InUse;
}
public enum PairState : byte
{
Ready = 0,
@@ -108,4 +104,4 @@ public sealed partial class TestPair
CleanDisposed = 2,
Dead = 3,
}
}
}