Class WhileTests
Inherited Members
Namespace: Unity.VisualScripting.Tests.Units.Control
Assembly: solution.dll
Syntax
public class WhileTests : BaseGraphExecutionTests
Methods
TestBreak()
A break node exits out of the loop, after control returns from the body.
Declaration
public void TestBreak()
Remarks
As opposed to how a break works in most programming languages, a break does not stop the flow through the body of the loop, but makes the loop stop when the flow returns to the loop node.
TestConditionFalse()
A while node with a false condition does not trigger the body connection, but does trigger the exit connection.
Declaration
public void TestConditionFalse()
TestConditionTrueThenFalse()
A while node triggers the body as long as the condition is true.
Declaration
public void TestConditionTrueThenFalse()