public void throws_when_input_data_is_null() { //arrange List <double> inputData = null; //act // ReSharper disable once ExpressionIsAlwaysNull Assert.Throws <ArgumentNullException>(() => AbsoluteRiskMeasures.GainStandardDeviation(inputData)); }
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)); }