Esempio n. 1
0
            public void Test(Graph graph, Interval interval)
            {
                var expected = new List<Node>();
                foreach (var nodeId in NodeIds) {
                    expected.Add(graph.Nodes[nodeId - 1]);
                }

                var actual = new List<Node>();
                interval.CollectNodes(actual);

                Assert.AreEqual(expected, actual);
            }