Assert.IsNot¶
Name | Mandatory | Description | Default | Type |
---|---|---|---|---|
⬅️ Input |
The input can be of any type. | Any |
||
Output ➡️ |
The output will be the input (passthrough). | Any |
||
Value |
No | The value to test against for equality. | none |
Any |
Break |
No | If we should trigger a debug breakpoint on failure. | false |
Bool |
This assertion is used to check whether the input is different from a given value.
Details¶
In this shard it's the inequality that's asserted. This means the assertion is considered successful if input to this shard does not match the :Value
parameter of this shard.
The rest of behaviour of this shard (including the impact of the value of the :Break
parameter) is identical to Assert.Is
.
Just like Assert.Is
, this shard too can be used for writing (inline) unit test cases.
See also
Examples¶
1 2 3 |
|
1 2 3 4 5 |
|
[error] Failed assertion IsNot, input: 8 not expected: 8
[error] Assert.IsNot -> Error: Assert failed - IsNot, Line: 4, Column: 3
[warning] Maybe shard Ignored an error: Assert failed - IsNot, line: 3, column: 5, wire: sample-wire
1 2 3 |
|
1 2 3 4 5 |
|
[error] Failed assertion IsNot, input: 8 not expected: 8
[error] Assert.IsNot -> Error: Assert failed - IsNot, Line: 4, Column: 3
[warning] Maybe shard Ignored an error: Assert failed - IsNot, line: 3, column: 5, wire: sample-wire