fix(core): Removes disposable netstates. (#467)
- [X] Removes IDisposable from NetState - [X] Swaps Disconnect and Dispose methods
This commit is contained in:
parent
079eeb1b96
commit
67625ad249
49 changed files with 204 additions and 210 deletions
|
|
@ -52,7 +52,7 @@ namespace UOContent.Tests
|
|||
|
||||
beholder.Setup(m => m.CanSee(It.Is<IEntity>(e => e == boat))).Returns(true);
|
||||
|
||||
using var ns = PacketTestUtilities.CreateTestNetState();
|
||||
var ns = PacketTestUtilities.CreateTestNetState();
|
||||
ns.ProtocolChanges = ProtocolChanges.HighSeas;
|
||||
var expected = new MoveBoatHS(beholder.Object, boat, d, speed, list, xOffset, yOffset).Compile();
|
||||
|
||||
|
|
@ -95,7 +95,7 @@ namespace UOContent.Tests
|
|||
|
||||
beholder.Setup(m => m.CanSee(It.Is<IEntity>(e => e == boat))).Returns(true);
|
||||
|
||||
using var ns = PacketTestUtilities.CreateTestNetState();
|
||||
var ns = PacketTestUtilities.CreateTestNetState();
|
||||
ns.ProtocolChanges = ProtocolChanges.HighSeas;
|
||||
|
||||
var expected = new DisplayBoatHS(beholder.Object, boat).Compile();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue