Class MatchFailure
Match failure details.
Inheritance
System.Object
MatchFailure
Implements
Namespace: Amazon.CDK.Assertions
Assembly: Amazon.CDK.Assertions.dll
Syntax (csharp)
public class MatchFailure : Object, IMatchFailure
Syntax (vb)
Public Class MatchFailure
Inherits Object
Implements IMatchFailure
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Assertions;
Matcher matcher;
var matchFailure = new MatchFailure {
Matcher = matcher,
Message = "message",
Path = new [] { "path" }
};
Synopsis
Constructors
MatchFailure() |
Properties
Matcher | The matcher that had the failure. |
Message | Failure message. |
Path | The relative path in the target where the failure occurred. |
Constructors
MatchFailure()
public MatchFailure()
Properties
Matcher
Message
Failure message.
public string Message { get; set; }
Property Value
System.String
Path
The relative path in the target where the failure occurred.
public string[] Path { get; set; }
Property Value
System.String[]
Remarks
If the failure occurred at root of the match tree, set the path to an empty list.
If it occurs in the 5th index of an array nested within the 'foo' key of an object,
set the path as ['/foo', '[5]']
.