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