public void Nodes_Are_At_The_Right_Place() { A = graph.AllNodes.OfType <TextNode>().First(); Assert.AreEqual("A", A.Text, "First one is A."); B = A.GetNeighbors().OfType <TextNode>().First(); Assert.AreEqual("B", B.Text, "A is linked with B."); Assert.IsNotEmpty(A.AllLinks, "A has one link created."); Assert.IsEmpty(A.GetNeighborlessLinksSync(), "No neighborless links for A"); C = B.GetNeighborsSync().OfType <TextNode>().First(x => x.Text == "C"); Assert.IsNotNull(C, "C exists as a neighbor of B."); }