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