fix(core): Adds Gump component functionality (#377)
- [X] Adds gump close packet - [X] Fixes gump tooltip - [X] Adds new compile/append functions for the new gump packets
This commit is contained in:
parent
cc91fe2b10
commit
3b413371dc
40 changed files with 1696 additions and 137 deletions
|
|
@ -0,0 +1,24 @@
|
|||
using System.Linq;
|
||||
using Server.Collections;
|
||||
using Xunit;
|
||||
|
||||
namespace Server.Tests
|
||||
{
|
||||
public class OrderedHashSetTests
|
||||
{
|
||||
[Fact]
|
||||
public void TestOrderedHashSet()
|
||||
{
|
||||
var set = new OrderedHashSet<string>(1) { "random string1", "another random string1", "another random string2", "another random string3" };
|
||||
set.Remove("another random string1");
|
||||
var list = set.ToList();
|
||||
|
||||
string[] arr = { "random string1", "another random string2", "another random string3" };
|
||||
int i = 0;
|
||||
foreach (var entry in list)
|
||||
{
|
||||
Assert.Equal(entry, arr[i++]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue