Class CacheTests
Inherited Members
Namespace: Unity.VisualScripting.Tests.Units.Control
Assembly: solution.dll
Syntax
public class CacheTests : BaseGraphExecutionTests
Methods
TestCachesValues()
When the cache input flow is triggered, the value to cache is stored in the cache. After that point, fetching it does not query it again from the source object, but just uses the cached object.
Declaration
public void TestCachesValues()
TestGettingValueBeforeStored()
Trying to retrieve the value from the cache until it has been stored by entering the input flow throws an InvalidOperationException.
Declaration
public void TestGettingValueBeforeStored()
TestStoringValueTriggersControlOutput()
Triggering the enter control input stores the value and then triggers the exit control output.
Declaration
public void TestStoringValueTriggersControlOutput()
TestUpdatingCachedValue()
Triggering the enter control input again when a value is already stored in the cache updates the cache with a new value from the source object.
Declaration
public void TestUpdatingCachedValue()