Class DiffResult
- Namespace
- Xping.Sdk.Core.Session.Comparison
- Assembly
- Xping.Sdk.Core.dll
Encapsulates the result of a TestSession comparison.
public class DiffResult : IEquatable<DiffResult>
- Inheritance
-
DiffResult
- Implements
- Inherited Members
Constructors
DiffResult()
Initializes a new instance of the DiffResult class.
public DiffResult()
Properties
Differences
Gets or sets the readon only collection of differences between two TestSession instances.
public IReadOnlyCollection<Difference> Differences { get; }
Property Value
Empty
Gets a singleton instance of the DiffResult class that represents an empty diff result.
public static DiffResult Empty { get; }
Property Value
Methods
Equals(object?)
Determines whether the current DiffResult object is equal to a specified object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
- bool
true
if the current object and obj are both DiffResult objects and have the same value; otherwise,false
.
Equals(DiffResult?)
Determines whether the current DiffResult object is equal to another DiffResult object.
public bool Equals(DiffResult? other)
Parameters
other
DiffResultThe DiffResult object to compare with the current object.
Returns
- bool
true
if the current object and other have the same value; otherwise,false
.
GetHashCode()
Returns the hash code for the current DiffResult object.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer hash code.
Operators
operator ==(DiffResult?, DiffResult?)
Determines whether two DiffResult objects have the same value.
public static bool operator ==(DiffResult? lhs, DiffResult? rhs)
Parameters
lhs
DiffResultThe first DiffResult object to compare.
rhs
DiffResultThe second DiffResult object to compare.
Returns
- bool
true
if lhs and rhs have the same value; otherwise,false
.
operator !=(DiffResult?, DiffResult?)
Determines whether two DiffResult objects have different values.
public static bool operator !=(DiffResult? lhs, DiffResult? rhs)
Parameters
lhs
DiffResultThe first DiffResult object to compare.
rhs
DiffResultThe second DiffResult object to compare.
Returns
- bool
true
if lhs and rhs have different values; otherwise,false
.