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
sourceCoreInstanceTestResultThe 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
coreInstanceNamestringThe core instance for which this result is representing.
iclInstanceNamesIEnumerable<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
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
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
otherCoreInstanceTestResultThe 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
otheris null.- ArgumentException
Thrown if
otherrepresents a different core instance than the current result.