public void Hexagon_CheckIfLastConnectorConnectsInAndOutgoing_has_to_work() { HyperEdge edge = new HyperEdge("00", "00", "00", TileOrientation.Straight); Hexagon hexagon = new Hexagon(edge, TileFace.Right, new HyperEdge("00", "00")); HyperEdge connector1 = new HyperEdge("00", "00"); HyperEdge connector2 = new HyperEdge("01", "10"); Assert.IsTrue(hexagon.CheckIfLastConnectorConnectsInAndOutgoing(new Vertex("00"), new Vertex("00"), connector1)); Assert.IsTrue(hexagon.CheckIfLastConnectorConnectsInAndOutgoing(new Vertex("01"), new Vertex("10"), connector2)); Assert.IsTrue(hexagon.CheckIfLastConnectorConnectsInAndOutgoing(new Vertex("10"), new Vertex("01"), connector2)); Assert.IsFalse(hexagon.CheckIfLastConnectorConnectsInAndOutgoing(new Vertex("10"), new Vertex("10"), connector2)); Assert.IsFalse(hexagon.CheckIfLastConnectorConnectsInAndOutgoing(new Vertex("01"), new Vertex("01"), connector2)); }