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