public static AndConstraint <NullableNumericAssertions <decimal> > BeApproximately(this NullableNumericAssertions <decimal> parent, decimal?expectedValue,
                                                                                    string because = "", params object[] becauseArgs)
 {
     return(parent.BeApproximately(expectedValue, NumericPrecision, because, becauseArgs));
 }
Exemple #2
0
 public static AndConstraint <NullableNumericAssertions <double> > BeApproximately(this NullableNumericAssertions <double> parent, decimal?expectedValue, string because = "", params object[] becauseArgs) =>
 parent.BeApproximately((double?)expectedValue, Math.Abs((double?)expectedValue * TestsBase.DoublePrecisionPercentage ?? TestsBase.DoublePrecision), because, becauseArgs);