TestimoX

API Reference

Struct

ComparisonResult

Namespace TestimoX.Types
Assembly TestimoX
Base ValueType
Modifiers sealed

Result of a comparison operation.

Inheritance

  • ValueType
  • ComparisonResult

Methods

public static ComparisonResult Failed(String error) #
Returns: ComparisonResult

Creates a failed comparison result with the provided error message.

Parameters

error System.String requiredposition: 0
Description of the failure.
public static ComparisonResult SuccessResult(Boolean result) #
Returns: ComparisonResult

Creates a successful comparison result with the specified boolean outcome.

Parameters

result System.Boolean requiredposition: 0

Properties

public Boolean Result { get; } #

Outcome of the comparison (true/false) when Success is true.

public Boolean Success { get; } #

Indicates whether the comparison ran successfully (no exceptions or type errors).

public String ErrorMessage { get; } #

Error details when Success is false; otherwise unspecified.

public static ComparisonResult Equal { get; } #

Represents equality comparison success.

public static ComparisonResult NotComparable { get; } #

Represents an unsupported or incomparable state.