You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-15 06:36:30 +09:00
NetConnection.UnsentBytesCount added
This commit is contained in:
@@ -8,12 +8,18 @@ namespace UnitTests
|
||||
{
|
||||
public static void Run()
|
||||
{
|
||||
NetQueue<int> queue = new NetQueue<int>(8);
|
||||
NetQueue<int> queue = new NetQueue<int>(4);
|
||||
|
||||
queue.Enqueue(1);
|
||||
queue.Enqueue(2);
|
||||
queue.Enqueue(3);
|
||||
|
||||
int[] arr = queue.ToArray();
|
||||
if (arr.Length != 3)
|
||||
throw new Exception("NetQueue.ToArray failure");
|
||||
if (arr[0] != 1 || arr[1] != 2 || arr[2] != 3)
|
||||
throw new Exception("NetQueue.ToArray failure");
|
||||
|
||||
bool ok;
|
||||
int a;
|
||||
|
||||
@@ -69,6 +75,10 @@ namespace UnitTests
|
||||
if (queue.Count != 0)
|
||||
throw new Exception("NetQueue.Clear failed");
|
||||
|
||||
int[] arr2 = queue.ToArray();
|
||||
if (arr2.Length != 0)
|
||||
throw new Exception("NetQueue.ToArray failure");
|
||||
|
||||
Console.WriteLine("NetQueue tests OK");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user