Exemplo n.º 1
0
 private void VerifyWriteTreeWithHeight2(IDataNode node, TreeWithHeight2.Class value)
 {
     node.Write(binaryWriter, value);
     (node.Edges[0].ChildNode as IDataNode).Write(binaryWriter, value.Long);
     VerifyWriteTreeWithHeight1(node.Edges[1].ChildNode as IDataNode, value.Child);
 }
Exemplo n.º 2
0
 private void SetupTreeWithHeight2(IDataNode node, TreeWithHeight2.Class expected, params TreeWithHeight2.Class[] otherExpected)
 {
     node.Read(binaryReader).Returns(_ => new TreeWithHeight2.Class());
     (node.Edges[0].ChildNode as IDataNode).Read(binaryReader).Returns(expected.Long, otherExpected.Select(e => (object)e.Long).ToArray());
     SetupTreeWithHeight1(node.Edges[1].ChildNode as IDataNode, expected.Child, otherExpected.Select(e => e.Child).ToArray());
 }