public void NodeDataConstructorTest()
        {
            const int       nodeId    = 2000;
            DemographicsSet parentSet = DemographicsSet.CreateDemographicsSet();

            parentSet.AddLayer("layer1.compiled.json");
            var target = new NodeData_Accessor(nodeId, parentSet);

            Assert.AreEqual("San Diego, CA", target.GetString("NodeAttributes:Name"));
            Assert.AreEqual(1223400, target.GetInteger("NodeAttributes/InitialPopulation"));
        }
        public void GetIntegerTest()
        {
            DemographicsSet set = DemographicsSet.CreateDemographicsSet();

            set.AddLayer("layer1.compiled.json");
            var          param0   = new PrivateObject(set.GetNodeData(1970));
            var          target   = new NodeData_Accessor(param0);
            const string key      = "NodeAttributes.InitialPopulation";
            const int    expected = 596974;
            int          actual   = target.GetInteger(key);

            Assert.AreEqual(expected, actual);
        }