1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 22:56:30 +09:00

NetQueue fixes

This commit is contained in:
lidgren
2010-09-02 22:17:34 +00:00
parent 6e1ff06634
commit 61436efa7b
3 changed files with 20 additions and 5 deletions

View File

@@ -14,6 +14,12 @@ namespace UnitTests
queue.Enqueue(2);
queue.Enqueue(3);
if (queue.Contains(4))
throw new Exception("NetQueue Contains failure");
if (!queue.Contains(2))
throw new Exception("NetQueue Contains failure 2");
if (queue.Count != 3)
throw new Exception("NetQueue failed");
if (queue.TryDequeue() != 1)