Beispiel #1
0
        public void empty_graphs_merge_to_empty_graph()
        {
            var graph1 = new AffectedGraph();
            var graph2 = new AffectedGraph();
            var merged = graph1.Merge(graph2);

            Assert.AreEqual(0, merged.AllNodes().Count());
        }
Beispiel #2
0
        public void nodes_from_both_graphs_get_added_to_output()
        {
            var graph1 = new AffectedGraph();

            graph1.AddNode(new AffectedGraphNode("test1", false, false, false, "test", "test12", "assembly", "type", new List <TestDescriptor>(), false, false, 0));
            var graph2 = new AffectedGraph();

            graph2.AddNode(new AffectedGraphNode("test1", false, false, false, "test", "test123", "assembly", "type", new List <TestDescriptor>(), false, false, 0));
            var merged = graph1.Merge(graph2);

            Assert.AreEqual(2, merged.AllNodes().Count());
        }