Class ToggleValueTests
Inherited Members
Namespace: Unity.VisualScripting.Tests.Units.Control
Assembly: solution.dll
Syntax
public class ToggleValueTests : BaseGraphExecutionTests
Methods
FetchValue(TestOutputUnit)
Declaration
protected object FetchValue(BaseGraphExecutionTests.TestOutputUnit unit)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseGraphExecutionTests.TestOutputUnit | unit |
Returns
| Type | Description |
|---|---|
| object |
SetUp()
Set up a graph suitable for most of these tests.
Declaration
public void SetUp()
TearDown()
Declaration
public void TearDown()
TestInitialState(bool)
Tests that the values of the value outputs are as expected when the unit has just been created.
Declaration
public void TestInitialState(bool startOn)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | startOn | Which state to start the unit in. |
TestOff()
Test that Off switches the toggle off
Declaration
public void TestOff()
TestOn()
Test that On switches the toggle on
Declaration
public void TestOn()
TestToggling()
Test that Toggle toggles the toggle.
Declaration
public void TestToggling()
Remarks
It should also trigger the Turned On and Turned Off