public void Can_calculate_sibling_index(uint row, uint indexAtRow, uint?expectedSiblingIndex) { if (expectedSiblingIndex == null) { Assert.Throws <ArgumentOutOfRangeException>(() => BaselineTree.GetSiblingIndexAtRow(row, indexAtRow)); } else { BaselineTree.GetSiblingIndexAtRow(row, indexAtRow).Should().Be(expectedSiblingIndex.Value); BaselineTree.GetSiblingIndexAtRow(row, expectedSiblingIndex.Value).Should().Be(indexAtRow); } }