AssertProps
Properties for defining a Assert
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ros-assert
Initializer
using AlibabaCloud.SDK.ROS.CDK.Ros;
new AssertProps {
object Values,
object AbortCreation = null,
object ErrorMessage = null,
object Operation = null
};
Properties
Name | Type | Description |
---|---|---|
Values |
object |
Property values: A list of values to assert. |
AbortCreation |
object |
Property abortCreation: Whether to abort creation when the assert fails. |
ErrorMessage |
object |
Property errorMessage: The error message to be returned when the assert fails. |
Operation |
object |
Property operation: The type of assertion to make. |
Values
Required
public object Values { get; set; }
- Type: object
Property values: A list of values to assert.
The items in the list are compared in order. The range of length is one to three.
- Three values are supported only if the operation is Equal or NotEqual.
- One value is supported only if the operation is Not.
AbortCreation
Optional
public object AbortCreation { get; set; }
- Type: object
Property abortCreation: Whether to abort creation when the assert fails.
Default is True.
ErrorMessage
Optional
public object ErrorMessage { get; set; }
- Type: object
Property errorMessage: The error message to be returned when the assert fails.
Operation
Optional
public object Operation { get; set; }
- Type: object
Property operation: The type of assertion to make.
The supported operations are: Equal, NotEqual, Greater, GreaterOrEqual, Less, LessOrEqual, Contain, NotContain, And, Or, Not. Default is Equal.