Class SelectOnEnumTests
Inherited Members
Namespace: Unity.VisualScripting.Tests.Units.Control
Assembly: solution.dll
Syntax
public class SelectOnEnumTests : BaseGraphExecutionTests
Methods
TestInvalidInputValue()
Tests what happens if we pass in a value that's not one of the enum cases.
Declaration
public void TestInvalidInputValue()
TestSelectionWhenInputIsMissing()
Tests that we get a MissingValuePortInputException if no node is connected for the given input.
Declaration
public void TestSelectionWhenInputIsMissing()
TestSelectionWhenUnusedInputValueNotConnected()
Tests what happens if no node is connected for an enum value that's not the input value.
Declaration
public void TestSelectionWhenUnusedInputValueNotConnected()
TestSelectsCorrectValue(TestEnum)
Tests that the SelectOnEnum unit selects the correct value.
Declaration
public void TestSelectsCorrectValue(SelectOnEnumTests.TestEnum input)
Parameters
| Type | Name | Description |
|---|---|---|
| SelectOnEnumTests.TestEnum | input |