Class IfTests
Inherited Members
Namespace: Unity.VisualScripting.Tests.Units.Control
Assembly: solution.dll
Syntax
public class IfTests : BaseGraphExecutionTests
Methods
SimpleTest(bool)
A basic test of the If unit.
Declaration
public void SimpleTest(bool cond)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | cond |
TestPortAttributes()
Tests that the ports of the select node are of the expected types.
Declaration
public void TestPortAttributes()
TestPortsDisconnected(bool, bool, bool, bool)
Tests the behaviour when ports are not connected.
Declaration
public void TestPortsDisconnected(bool cond, bool selectorDisconnected, bool trueDisconnected, bool falseDisconnected)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | cond | The input for the condition input |
| bool | selectorDisconnected | Whether the selector port is disconnected |
| bool | trueDisconnected | Whether the true port is disconnected |
| bool | falseDisconnected | Whether the false port is disconnected |