Improve WeakValueDictionary Test

pull/2/head
Harald Wolff 2019-10-04 00:05:52 +02:00
parent 73fbf8a426
commit b07b3aa608
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@
using NUnit.Framework;
using System;
using ln.types.collections;
using System.Threading;
namespace ln.types.test
{
[TestFixture()]
@ -52,8 +53,12 @@ namespace ln.types.test
values[0] = null;
values[values.Length - 1] = null;
Thread.Sleep(250);
GC.Collect();
Thread.Sleep(250);
Assert.AreEqual(values.Length-2, dict.Values.Count);
}
}