public void BetaOfDecimalList_SourceCumulativePercentageToOverflow_OverflowExceptionThrown() { IEnumerable <decimal> measure1 = new decimal[] { decimal.MaxValue, decimal.MaxValue }; IEnumerable <decimal> measure2 = new decimal[] { decimal.MaxValue, decimal.MaxValue }; Action comparison = () => { measure1.Beta(measure2); }; comparison.ShouldThrow <OverflowException>(); }
public void BetaOfDecimalList_SourceIsNotEmptyButDifferentLengths_ArgumentExceptionThrown() { IEnumerable <decimal> measure1 = new decimal[] { 1M, 2M, 3M }; IEnumerable <decimal> measure2 = new decimal[] { 1M, 2M }; Action comparison = () => { measure1.Beta(measure2); }; comparison.ShouldThrow <ArgumentException>(); }