fix: Updates SummonFamiliar & Tracking gumps to static (#2098)
This commit is contained in:
parent
ed87df1a61
commit
cbae44ef20
3 changed files with 324 additions and 356 deletions
|
|
@ -1,28 +0,0 @@
|
|||
using Server.Gumps;
|
||||
using Server.Mobiles;
|
||||
using Server.SkillHandlers;
|
||||
using Server.Tests;
|
||||
using Server.Tests.Network;
|
||||
using Xunit;
|
||||
|
||||
namespace UOContent.Tests;
|
||||
|
||||
public class TrackingGumpTests : IClassFixture<ServerFixture>
|
||||
{
|
||||
[Fact]
|
||||
// Regression test used to identify an issue with AddItem compilation of the packet
|
||||
public void TestTrackingGump()
|
||||
{
|
||||
var pm = new PlayerMobile();
|
||||
pm.Skills.Tracking.BaseFixedPoint = 1000;
|
||||
var g = new TrackWhatGump(pm);
|
||||
|
||||
var ns = PacketTestUtilities.CreateTestNetState();
|
||||
|
||||
var expected = g.Compile(ns).Compile();
|
||||
ns.SendGump(g);
|
||||
|
||||
var result = ns.SendPipe.Reader.AvailableToRead();
|
||||
AssertThat.Equal(result, expected);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue