Class ScalarAssertions
- Namespace
- TUnit.Assertions.Extensions
- Assembly
- MathAssertions.TUnit.dll
public static class ScalarAssertions
- Inheritance
-
ScalarAssertions
- Inherited Members
Methods
HasRoundtripIdentity(IAssertionSource<double>, Func<double, double>, Func<double, double>, double, string?, string?, string?)
Generated extension method for HasRoundtripIdentity
public static Double_HasRoundtripIdentity_FuncDoubleDouble_FuncDoubleDouble_Double_Assertion HasRoundtripIdentity(this IAssertionSource<double> source, Func<double, double> forward, Func<double, double> inverse, double tolerance, string? forwardExpression = null, string? inverseExpression = null, string? toleranceExpression = null)
Parameters
sourceIAssertionSource<double>forwardFunc<double, double>inverseFunc<double, double>tolerancedoubleforwardExpressionstringinverseExpressionstringtoleranceExpressionstring
Returns
IsApproximatelyEqualTo(IAssertionSource<double>, double, double, string?, string?)
Generated extension method for IsApproximatelyEqualTo
public static Double_IsApproximatelyEqualTo_Double_Double_Assertion IsApproximatelyEqualTo(this IAssertionSource<double> source, double expected, double tolerance, string? expectedExpression = null, string? toleranceExpression = null)
Parameters
sourceIAssertionSource<double>expecteddoubletolerancedoubleexpectedExpressionstringtoleranceExpressionstring
Returns
IsApproximatelyEqualTo(IAssertionSource<float>, float, float, string?, string?)
Generated extension method for IsApproximatelyEqualTo
public static Float_IsApproximatelyEqualTo_Float_Float_Assertion IsApproximatelyEqualTo(this IAssertionSource<float> source, float expected, float tolerance, string? expectedExpression = null, string? toleranceExpression = null)
Parameters
sourceIAssertionSource<float>expectedfloattolerancefloatexpectedExpressionstringtoleranceExpressionstring
Returns
IsCloseInUlpsTo(IAssertionSource<double>, double, long, string?, string?)
Generated extension method for IsCloseInUlpsTo
public static Double_IsCloseInUlpsTo_Double_Long_Assertion IsCloseInUlpsTo(this IAssertionSource<double> source, double expected, long ulpDistance, string? expectedExpression = null, string? ulpDistanceExpression = null)
Parameters
sourceIAssertionSource<double>expecteddoubleulpDistancelongexpectedExpressionstringulpDistanceExpressionstring
Returns
IsCloseInUlpsTo(IAssertionSource<float>, float, int, string?, string?)
Generated extension method for IsCloseInUlpsTo
public static Float_IsCloseInUlpsTo_Float_Int_Assertion IsCloseInUlpsTo(this IAssertionSource<float> source, float expected, int ulpDistance, string? expectedExpression = null, string? ulpDistanceExpression = null)
Parameters
sourceIAssertionSource<float>expectedfloatulpDistanceintexpectedExpressionstringulpDistanceExpressionstring
Returns
IsNonNegativeFinite(IAssertionSource<double>)
Generated extension method for IsNonNegativeFinite
public static Double_IsNonNegativeFinite_Assertion IsNonNegativeFinite(this IAssertionSource<double> source)
Parameters
sourceIAssertionSource<double>
Returns
IsPercentage(IAssertionSource<double>)
Generated extension method for IsPercentage
public static Double_IsPercentage_Assertion IsPercentage(this IAssertionSource<double> source)
Parameters
sourceIAssertionSource<double>
Returns
IsProbability(IAssertionSource<double>)
Generated extension method for IsProbability
public static Double_IsProbability_Assertion IsProbability(this IAssertionSource<double> source)
Parameters
sourceIAssertionSource<double>
Returns
IsRelativelyAndAbsolutelyCloseTo(IAssertionSource<double>, double, double, double, string?, string?, string?)
Generated extension method for IsRelativelyAndAbsolutelyCloseTo
public static Double_IsRelativelyAndAbsolutelyCloseTo_Double_Double_Double_Assertion IsRelativelyAndAbsolutelyCloseTo(this IAssertionSource<double> source, double expected, double relativeTolerance, double absoluteTolerance, string? expectedExpression = null, string? relativeToleranceExpression = null, string? absoluteToleranceExpression = null)
Parameters
sourceIAssertionSource<double>expecteddoublerelativeTolerancedoubleabsoluteTolerancedoubleexpectedExpressionstringrelativeToleranceExpressionstringabsoluteToleranceExpressionstring