Class ToggleFlowTests
Inherited Members
Namespace: Unity.VisualScripting.Tests.Units.Control
Assembly: solution.dll
Syntax
public class ToggleFlowTests : BaseGraphExecutionTests
Methods
TestEnterTriggeredInInitialState(bool)
Test that triggering the enter control input triggers the exitOn or exitOff control outputs depending on the state of the unit, and that the isOn value output has the expected value.
Declaration
public void TestEnterTriggeredInInitialState(bool startOn)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | startOn |
TestToggleSwitchesBetweenOnAndOff()
Triggering the toggle input flow switches between on and off.
Declaration
public void TestToggleSwitchesBetweenOnAndOff()
TestTurnOffTriggersTurnedOff(bool)
Triggering the Turn Off input flow triggers the Turned Off flow and switches the unit to be on, after which triggering the main input will trigger the exitOff output.
Declaration
public void TestTurnOffTriggersTurnedOff(bool startOn)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | startOn |
TestTurnOnTriggersTurnedOn(bool)
Triggering the Turn On input flow triggers the Turned On flow and switches the unit to be on, after which triggering the main input will trigger the exitOn output.
Declaration
public void TestTurnOnTriggersTurnedOn(bool startOn)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | startOn |