Class LessTests
Inherited Members
Namespace: Unity.VisualScripting.Tests.Units.Logic
Assembly: solution.dll
Syntax
public class LessTests : BinaryComparisonTests
Methods
SimpleFloatTest(float, float)
Tests a collection of normal and edge cases for the Less unit with floats.
Declaration
public void SimpleFloatTest(float lhs, float rhs)
Parameters
| Type | Name | Description |
|---|---|---|
| float | lhs | |
| float | rhs |
SimpleIntTest(int, int)
Tests a collection of normal and edge cases for the Less unit with ints.
Declaration
public void SimpleIntTest(int lhs, int rhs)
Parameters
| Type | Name | Description |
|---|---|---|
| int | lhs | |
| int | rhs |
Remarks
Within all BinaryComparisonUnit based units where comparisons are numeric; floats are used for the comparison operation.
TestPortAttributes()
Tests the various attributes of the node ports.
Declaration
public void TestPortAttributes()
TestPortsDisconnected(float, float, bool, bool, bool)
Tests expected behaviour when ports are disconnected.
Declaration
public void TestPortsDisconnected(float lhs, float rhs, bool lhsDisconnected, bool rhsDisconnected, bool resultDisconnected)
Parameters
| Type | Name | Description |
|---|---|---|
| float | lhs | |
| float | rhs | |
| bool | lhsDisconnected | |
| bool | rhsDisconnected | |
| bool | resultDisconnected |