Beispiel #1
0
 private static void CheckArgs <TVertex, TEdge, TVertexInfo, TEdgeInfo>(
     [NotNull] ILayoutInfoIterationEventArgs <TVertex, TEdge, TVertexInfo, TEdgeInfo> args,
     double status,
     bool isAborted,
     int iteration,
     [NotNull] string message,
     [CanBeNull] IDictionary <TVertex, Point> positions,
     [CanBeNull] IDictionary <TVertex, TVertexInfo> verticesInfos,
     [CanBeNull] IDictionary <TEdge, TEdgeInfo> edgeInfos)
     where TEdge : IEdge <TVertex>
 {
     CheckArgs(args, status, isAborted, iteration, message, positions);
     Assert.AreSame(verticesInfos, args.VerticesInfos);
     Assert.AreSame(edgeInfos, args.EdgesInfos);
 }
Beispiel #2
0
 private static void CheckArgs <TVertex, TEdge>(
     [NotNull] ILayoutInfoIterationEventArgs <TVertex, TEdge> args,
     double status,
     bool isAborted,
     int iteration,
     [NotNull] string message,
     [CanBeNull] IDictionary <TVertex, Point> positions)
     where TEdge : IEdge <TVertex>
 {
     Assert.AreEqual(status, args.StatusInPercent);
     Assert.AreEqual(isAborted, args.Abort);
     Assert.AreEqual(iteration, args.Iteration);
     Assert.AreEqual(message, args.Message);
     Assert.AreSame(positions, args.VerticesPositions);
 }
 protected void OnIterationEnded(ILayoutInfoIterationEventArgs <TVertex, TEdge, TVertexInfo, TEdgeInfo> e)
 {
     IterationEnded?.Invoke(this, e);
 }