public void AddUndirectedEdge_ShouldThrowInvalidOperationException_WhenEdgeCreatesLoopOrMultipleEdge(MixedGraph <int> graph, int source, int destination) { Assert.Throws <InvalidOperationException>(() => { graph.AddUndirectedEdge(source, destination); }); }
public void AddUndirectedEdge_ShouldThrowKeyNotFoundException_WhenNotExistingKeySpecified(MixedGraph <int> graph, int source, int destination) { Assert.Throws <KeyNotFoundException>(() => { graph.AddUndirectedEdge(source, destination); }); }