Beispiel #1
0
 public void CalculateSearchComplexityWorks(long n, long expected)
 {
     Assert.AreEqual(expected, BinarySearch.CalculateSearchComplexity(n));
 }
Beispiel #2
0
 public void CalculateSearchComplexityThrowsWhenArgOutOfRange(long badArg)
 {
     Assert.ThrowsException <ArgumentOutOfRangeException>(() => {
         BinarySearch.CalculateSearchComplexity(badArg);
     });
 }