Esempio n. 1
0
 public void Can_calculate_parent_index(ulong nodeIndex, uint?parentIndex)
 {
     if (parentIndex == null)
     {
         Assert.Throws <ArgumentOutOfRangeException>(() => BaselineTree.GetParentIndex(nodeIndex));
     }
     else
     {
         BaselineTree.GetParentIndex(nodeIndex).Should().Be(parentIndex.Value);
     }
 }