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