public void NativeMapTest() { NativeMap <int, NativeString> map = new NativeMap <int, NativeString>(4); Assert.AreEqual(4, map.Capacity); Assert.AreEqual(0, map.Length); Assert.IsTrue(map.IsValid); Assert.IsTrue(map.IsEmpty); map.Dispose(); Assert.AreEqual(0, map.Capacity); Assert.AreEqual(0, map.Length); Assert.IsFalse(map.IsValid); Assert.IsTrue(map.IsEmpty); map.DisposeMapAndValues(); }