コード例 #1
0
 public void AddDirectedEdge_ShouldThrowInvalidOperationException_WhenEdgesCreatesLoopOrMultipleEdge(MixedGraph <int> graph, int source, int destination)
 {
     Assert.Throws <InvalidOperationException>(() =>
     {
         graph.AddDirectedEdge(source, destination);
     });
 }
コード例 #2
0
 public void AddDirectedEdge_ShouldThrowKeyNotFoundException_WhenNotExistingKeySpecified(MixedGraph <int> graph, int source, int destination)
 {
     Assert.Throws <KeyNotFoundException>(() =>
     {
         graph.AddDirectedEdge(source, destination);
     });
 }