Example #1
0
        public void GetComponents_ReturnsProperComponents_ForDirectedGraphs([NotNull] string relationships,
                                                                            string expected)
        {
            var graph  = new LiteralGraph(relationships, true);
            var result = string.Join(";",
                                     graph.GetComponents().Select(component => string.Join(",", component)));

            Assert.AreEqual(expected, result);
        }