public void Binary_functions_should_throw_for_null_argument() { var x1 = new BigDecimal(1.1); ((Action)(() => x1.Add(null))).ShouldThrow <NullReferenceException>(); ((Action)(() => x1.Sub(null))).ShouldThrow <NullReferenceException>(); ((Action)(() => x1.Mul(null))).ShouldThrow <NullReferenceException>(); ((Action)(() => x1.Div(null))).ShouldThrow <NullReferenceException>(); ((Action)(() => x1.Pow(null))).ShouldThrow <NullReferenceException>(); ((Action)(() => x1.Dim(null))).ShouldThrow <NullReferenceException>(); }