public void AddDirectedEdge_ShouldThrowInvalidOperationException_WhenEdgesCreatesLoopOrMultipleEdge(MixedGraph <int> graph, int source, int destination) { Assert.Throws <InvalidOperationException>(() => { graph.AddDirectedEdge(source, destination); }); }
public void AddDirectedEdge_ShouldThrowKeyNotFoundException_WhenNotExistingKeySpecified(MixedGraph <int> graph, int source, int destination) { Assert.Throws <KeyNotFoundException>(() => { graph.AddDirectedEdge(source, destination); }); }