Class SwitchOnIntegerTests
Inherited Members
Namespace: Unity.VisualScripting.Tests.Units.Control
Assembly: solution.dll
Syntax
public class SwitchOnIntegerTests : BaseGraphExecutionTests
Methods
TestIntegerInputs(int)
A test of the SwitchOnInteger node.
Declaration
public void TestIntegerInputs(int input)
Parameters
| Type | Name | Description |
|---|---|---|
| int | input |
TestNoCases(int)
If we have no output options, the default case is always triggerred.
Declaration
public void TestNoCases(int input)
Parameters
| Type | Name | Description |
|---|---|---|
| int | input |
TestNullInput()
If we pass a null as the input value, an InvalidConversionException is thrown.
Declaration
public void TestNullInput()
TestPortAttributes()
The SwitchOnInteger node has an output port for each option the user has added in the UI and also a "Default" one.
Declaration
public void TestPortAttributes()