public void ExceptionTrownIfIntListLessThan5Items() { Assert.ThrowsException <ArgumentException>(() => InterQuartileRangeCalculator.CalcIQR(IntList2Items), "2 is too few list items to calculate IQR"); }
public void IQRcorrectIfIntListContains5Items() { var correctIQR = 2; Assert.AreEqual(correctIQR, InterQuartileRangeCalculator.CalcIQR(IntList5Items)); }