public void GetNeighbors_WhenGraphHasNoLinks_ShouldReturnExpected() { var graph = BuildEmptyGraph(); var result = DiGraphHelper.GetDiNeighbors(graph); result.Should().BeEmpty(); }
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(); }