public void Knot_Equals_Test() { CircleEntry<Edge> start = new CircleEntry<Edge> (new Edge[] { Edge.Up, Edge.Left, Edge.Backward, Edge.Down, Edge.Right, Edge.Forward } ); KnotMetaData metaData = new KnotMetaData (name: "test", countEdges: () => start.Count ()); Knot knot = new Knot (metaData, start); for (int i = 0; i < 6; i++) { Assert.IsTrue (knot.Equals (new Knot (metaData, start))); start = start.Previous; } start.InsertBefore (Edge.Forward); start.InsertAfter (Edge.Backward); for (int i = 0; i < 6; i++) { Assert.IsFalse (knot.Equals (new Knot (metaData, start))); start = start.Previous; } }