public void TestAsColumnObjects() { TemporalMemory tm = new TemporalMemory(); Connections cn = new Connections(); cn.SetColumnDimensions(new[] { 64, 64 }); cn.SetCellsPerColumn(4); TemporalMemory.Init(cn); int[] indexes = { 0, 3, 4, 4095 }; HashSet <int> idxSet = new HashSet <int>(indexes); List <Column> columns = cn.AsColumnObjects(idxSet); foreach (Column column in columns) { Assert.IsTrue(idxSet.Contains(column.GetIndex())); } }