Beispiel #1
0
        public void CreateWithIntervalNode()
        {
            StructureNode node1 = CreateNode("node1", 1);
            StructureNode node2 = CreateNode("node2", 2);
            Interval      i1    = new Interval(1, node1);
            Interval      i2    = new Interval(2, node2);
            StructureNode node3 = CreateNode("node3", 3);

            i2.AddNode(node3);

            Interval i = new Interval(3, i1);

            i.AddNode(i2);
            Assert.AreEqual(2, i.Nodes.Count);
        }