Пример #1
0
 public void ExceptionTrownIfIntListLessThan5Items()
 {
     Assert.ThrowsException <ArgumentException>(() => InterQuartileRangeCalculator.CalcIQR(IntList2Items), "2 is too few list items to calculate IQR");
 }
Пример #2
0
        public void IQRcorrectIfIntListContains5Items()
        {
            var correctIQR = 2;

            Assert.AreEqual(correctIQR, InterQuartileRangeCalculator.CalcIQR(IntList5Items));
        }