public void InitAkkaDictionaryTest() { //Thread.Sleep(5000); var akkaDict = new HtmSparseIntDictionary <Column>(new HtmSparseIntDictionaryConfig() { //HtmActorConfig = new HtmConfig() //{ // ColumnTopology = new HtmModuleTopology() // { // Dimensions = new int[] { 100, 200 }, // IsMajorOrdering = false, // } //}, Nodes = Helpers.DefaultNodeList, }); for (int i = 0; i < 100; i++) { akkaDict.Add(i, new Column(32, i, 0.0, 0)); } for (int i = 0; i < 100; i++) { Column col; Assert.IsTrue(akkaDict.TryGetValue(i, out col)); } Column col2; Assert.IsFalse(akkaDict.TryGetValue(-1, out col2)); Assert.IsTrue(100 == akkaDict.Count); }