示例#1
0
        public void throws_when_input_data_is_null()
        {
            //arrange
            List <double> inputData = null;

            //act
// ReSharper disable once ExpressionIsAlwaysNull
            Assert.Throws <ArgumentNullException>(() => AbsoluteRiskMeasures.GainStandardDeviation(inputData));
        }
示例#2
0
        public void throws_when_input_data_is_null()
        {
            //arrange
            const double  minimumAcceptableReturn = 0.05;
            List <double> inputData = null;

            //act
// ReSharper disable once ExpressionIsAlwaysNull
            Assert.Throws <ArgumentNullException>(() => AbsoluteRiskMeasures.DownsideDeviation(inputData, minimumAcceptableReturn));
        }