Table of Contents

Class CoreInstanceTestResult

Namespace
Csra
Assembly
Csra.dll

Class to store the test result of a core instance, part of ScanNetworkPatternResults of a ScanNetwork pattern(set).

[Serializable]
public class CoreInstanceTestResult : IEnumerable<string>, IEnumerable
Inheritance
CoreInstanceTestResult
Implements
Inherited Members

Constructors

CoreInstanceTestResult(CoreInstanceTestResult)

Creates a new CoreInstanceTestResult by copying another instance. This can be useful when you want to create a new instance to hold updated results while keeping the original results unchanged.

public CoreInstanceTestResult(CoreInstanceTestResult source)

Parameters

source CoreInstanceTestResult

The source CoreInstanceTestResult to copy.

CoreInstanceTestResult(string, IEnumerable<string>)

Creates a new CoreInstanceTestResult object for a core instance.

public CoreInstanceTestResult(string coreInstanceName, IEnumerable<string> iclInstanceNames)

Parameters

coreInstanceName string

The core instance for which this result is representing.

iclInstanceNames IEnumerable<string>

The names of icl instances that belongs to this core instance.

Properties

ErrorStatus

Returns the per-site error status if any. 0 = no error.

public Site<int> ErrorStatus { get; }

Property Value

Site<int>

InstanceName

Gets the core instance name.

public string InstanceName { get; }

Property Value

string

IsFailed

Gets or sets the per-site test result of the core instance. True = failed, False = passed.

public Site<bool> IsFailed { get; set; }

Property Value

Site<bool>

IsResultValid

Result is valid if core instance is fully tested. i.e. all icl instances under this core instance are tested.

public Site<bool> IsResultValid { get; set; }

Property Value

Site<bool>

TestName

Gets or sets the test name for datalogging the result of this core instance.

public string TestName { get; set; }

Property Value

string

TestNumber

Gets or sets the test number for datalogging the result of this core instance.

public int? TestNumber { get; set; }

Property Value

int?

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection of strings.

public IEnumerator<string> GetEnumerator()

Returns

IEnumerator<string>

An enumerator that can be used to iterate through the collection.

MergeWith(CoreInstanceTestResult)

Merges the test result data from the other core instance test result into the current instance.

public void MergeWith(CoreInstanceTestResult other)

Parameters

other CoreInstanceTestResult

The core instance test result to merge with the current result. Must represent the same core instance.

Remarks

After merging, the combined result will include all unique test data from both instances. The failure and validity flags are updated to reflect the merged state.

Exceptions

ArgumentNullException

Thrown if other is null.

ArgumentException

Thrown if other represents a different core instance than the current result.