Class ForEachTests
Inherited Members
Namespace: Unity.VisualScripting.Tests.Units.Control
Assembly: solution.dll
Syntax
public class ForEachTests : BaseGraphExecutionTests
Methods
TestConnectingDictionaryToEnumerableForEach()
The ForEach unit has two modes, that accept an IEnumerable or an IDictionary. If an IDictionary collection is passed to a ForEach node expecting an IEnumerable, the loop is executed with the key value pairs of the dictionary.
Declaration
public void TestConnectingDictionaryToEnumerableForEach()
TestConnectingEnumerableToDictionaryForEach()
The ForEach unit has two modes, that accept an IEnumerable or an IDictionary. If an IEnumerable collection is passed to a ForEach unit expecting a dictionary, InvalidConversionException is thrown.
Declaration
public void TestConnectingEnumerableToDictionaryForEach()
TestCoroutineInvokesBodyWithDictionaryKeysValues()
When invoked with a list of items, the body flow is invoked once for each item and the exit flow is invoked once.
Declaration
public void TestCoroutineInvokesBodyWithDictionaryKeysValues()
TestCoroutineInvokesBodyWithListElements()
When invoked with a list of items, the body flow is invoked once for each item and the exit flow is invoked once.
Declaration
public void TestCoroutineInvokesBodyWithListElements()
TestDictionaryDefinition()
Test that a ForEach loop for looping over an IDictionary has the expected ports.
Declaration
public void TestDictionaryDefinition()
TestEmptyDictionary()
Does not invoke the body if the input dictionary is empty.
Declaration
public void TestEmptyDictionary()
TestEmptyList()
Does not invoke the body if the input list is empty.
Declaration
public void TestEmptyList()
TestEnumerableDefinition()
Test that a ForEach loop for looping over an IEnumerable has the expected ports.
Declaration
public void TestEnumerableDefinition()
TestInvokesBodyWithDictionaryKeysValues()
When invoked with a list of items, the body flow is invoked once for each item and the exit flow is invoked once.
Declaration
public void TestInvokesBodyWithDictionaryKeysValues()
TestInvokesBodyWithListElements()
When invoked with a list of items, the body flow is invoked once for each item and the exit flow is invoked once.
Declaration
public void TestInvokesBodyWithListElements()
TestRunsAsCoroutineDictionary()
If invoked as a coroutine, it runs as a coroutine and invokes its output flow as a coroutine.
Declaration
public void TestRunsAsCoroutineDictionary()
TestRunsAsCoroutineList()
If invoked as a coroutine, it runs as a coroutine and invokes its output flow as a coroutine.
Declaration
public void TestRunsAsCoroutineList()