fix(content): Converts buff icon packets (#389)

- [X] Converts buff icon packets, and avoids string formatting.
This commit is contained in:
Kamron Batman 2021-01-06 01:01:21 -08:00 • committed by GitHub
parent 0912876f7c
commit 03bdff2293
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 243 additions and 96 deletions

View file

@ -18,7 +18,10 @@ namespace Server.Tests.Network
AssertThat.Equal(result.Buffer[0].AsSpan(0), expected);
}
[Theory, InlineData(0, 0), InlineData(100, 10), InlineData(100000, 100000)]
[Theory]
[InlineData(0, 0)]
[InlineData(100, 10)]
[InlineData(100000, 100000)]
public void TestSetArrow(int x, int y)
{
var expected = new SetArrow(x, y).Compile();
@ -30,7 +33,10 @@ namespace Server.Tests.Network
AssertThat.Equal(result.Buffer[0].AsSpan(0), expected);
}
[Theory, InlineData(0, 0), InlineData(100, 10), InlineData(100000, 100000)]
[Theory]
[InlineData(0, 0)]
[InlineData(100, 10)]
[InlineData(100000, 100000)]
public void TestCancelArrowHS(int x, int y)
{
Serial serial = 0x1024;
@ -45,7 +51,10 @@ namespace Server.Tests.Network
AssertThat.Equal(result.Buffer[0].AsSpan(0), expected);
}
[Theory, InlineData(0, 0), InlineData(100, 10), InlineData(100000, 100000)]
[Theory]
[InlineData(0, 0)]
[InlineData(100, 10)]
[InlineData(100000, 100000)]
public void TestSetArrowHS(int x, int y)
{
Serial serial = 0x1024;