示例#1
0
 public void BstHasNoGreaterKey_ShouldReturnNull()
 {
     Assert.Null(Q02.FindFirstGreaterKey(exampleTree, 999));
 }
示例#2
0
 public void ShouldReturnSmallestNode()
 {
     Assert.Equal(2, Q02.FindFirstGreaterKey(exampleTree, 1));
 }
示例#3
0
 public void ShouldReturnGreatestNode()
 {
     Assert.Equal(53, Q02.FindFirstGreaterKey(exampleTree, 52));
 }
示例#4
0
 public void Example()
 {
     Assert.Equal(29, Q02.FindFirstGreaterKey(exampleTree, 23));
 }