Exemple #1
0
 public virtual void EdgeIsTransitive()
 {
     InitialCycles.Cycle.Edge p = new InitialCycles.Cycle.Edge(0, 1);
     InitialCycles.Cycle.Edge q = new InitialCycles.Cycle.Edge(1, 0);
     Assert.AreEqual(p.GetHashCode(), q.GetHashCode());
     Assert.AreEqual(p, q);
 }
Exemple #2
0
 public virtual void EdgeToString()
 {
     InitialCycles.Cycle.Edge p = new InitialCycles.Cycle.Edge(0, 1);
     Assert.AreEqual("{0, 1}", p.ToString());
 }