Table of Contents

Class ComplexAssertions

Namespace
MathAssertions.TUnit
Assembly
MathAssertions.TUnit.dll

Fluent Complex assertions delegating to MathTolerance.

public static class ComplexAssertions
Inheritance
ComplexAssertions
Inherited Members

Remarks

v0.2.0 enriches the failure message with Real / Imaginary delta rendering via MathAssertions.MathFailureMessage.

Methods

IsApproximatelyEqualTo(Complex, Complex, double)

Component-wise tolerance comparison across real and imaginary parts.

[GenerateAssertion(InlineMethodBody = true)]
public static AssertionResult IsApproximatelyEqualTo(this Complex value, Complex expected, double tolerance)

Parameters

value Complex
expected Complex
tolerance double

Returns

AssertionResult