public void TryAddTest() { var set = UnsafeDictionary.Allocate <int, float>(8, true); Assert.IsTrue(UnsafeDictionary.TryAdd <int, float>(set, 5, 10)); Assert.IsTrue(UnsafeDictionary.TryAdd <int, float>(set, 2, 18)); Assert.IsTrue(UnsafeDictionary.TryAdd <int, float>(set, 1, 1)); Assert.IsFalse(UnsafeDictionary.TryAdd <int, float>(set, 2, 1)); }