Пример #1
0
        public void GetNeighbors_WhenGraphHasNoLinks_ShouldReturnExpected()
        {
            var graph  = BuildEmptyGraph();
            var result = DiGraphHelper.GetDiNeighbors(graph);

            result.Should().BeEmpty();
        }
Пример #2
0
        public void GetNeighbors_ShouldReturnExpected()
        {
            var graph  = BuildGraph();
            var result = DiGraphHelper.GetDiNeighbors(graph);

            result["a"].Should().BeEquivalentTo("b");
            result["b"].Should().BeEquivalentTo("c");
            result["c"].Should().BeEquivalentTo();
        }