public void TestChainGetWithIndexes() { var chain = new TestTree(0) { Nodes = new[] { new TestNode(1, new TestNode(2, null)) } }; var id = chain.ChainGet(c => c.Nodes[0].Node.Node.Id); Assert.AreEqual(2, id); }