예제 #1
0
 public void Can_calculate_node_row(ulong nodeIndex, uint?expectedRow)
 {
     if (expectedRow == null)
     {
         Assert.Throws <ArgumentOutOfRangeException>(() => BaselineTree.GetRow(nodeIndex));
     }
     else
     {
         BaselineTree.GetRow(nodeIndex).Should().Be(expectedRow.Value);
     }
 }