Пример #1
0
 public void GetBiggest_FromMixedArray_GetsBiggestValue()
 {
     Assert.AreEqual(636, SmallestBiggest.GetBiggest(new int[] { -12, -82, 636, -3, -47 }));
 }
Пример #2
0
 public void GetBiggest_FromPositiveArray_GetsBiggestValue()
 {
     Assert.AreEqual(6434, SmallestBiggest.GetBiggest(new int[] { 12, 85, 6434, 3, 47 }));
 }
Пример #3
0
 public void GetBiggest_FromNegativeArray_GetsBiggestValue()
 {
     Assert.AreEqual(-3, SmallestBiggest.GetBiggest(new int[] { -12, -85, -634, -3, -47 }));
 }
Пример #4
0
 public void GetBiggest_FromEmptyArray_ThrowsArgumentException()
 {
     Assert.Throws <ArgumentException>(() => SmallestBiggest.GetBiggest(new int[0]));
 }