public void EmptyGraph_ReturnsEmptyGraph()
        {
            var graph = DirectedGraphBuilder <string> .EmptyGraph();

            graph.Count.Should().Be(0);
            graph.Elements.Should().BeEmpty();
        }
Ejemplo n.º 2
0
        public void Solve_EmptyInput_ReturnsEmptyOutput()
        {
            var graph = DirectedGraphBuilder <string> .EmptyGraph();

            var solver = CoffmanGraham.SolverForArbitraryGraphs(1);

            solver.Solve(graph).Should().BeEmpty();
        }