Beispiel #1
0
 public void TestFindPreviousLessThanWithExceptionOutOfRange()
 {
     Assert.That(() => NumbersExtension.FindPreviousLessThan(-124), Throws.TypeOf <System.ArgumentOutOfRangeException>());
 }
Beispiel #2
0
 public void FindPreviousLessThan_NumberLessThan0_ArgumentException()
 {
     Assert.Throws <ArgumentException>(() => NumbersExtension.FindPreviousLessThan(-100));
 }
Beispiel #3
0
 public int TestsFindPreviousLessThanWithoutThrow(int number)
 {
     return(NumbersExtension.FindPreviousLessThan(number));
 }
Beispiel #4
0
 public int?FindPreviousLessThanTests(int number) => NumbersExtension.FindPreviousLessThan(number);