Integrating up through commit 90f050496
This commit is contained in:
@@ -180,7 +180,7 @@ TEST_F(ScriptCanvasTestFixture, InsertSlot_Basic)
|
||||
graph->Deactivate();
|
||||
|
||||
{
|
||||
AZStd::vector< const Slot* > slotList = basicNode->GetAllSlots();
|
||||
const AZStd::vector< const Slot* > slotList = basicNode->GetAllSlots();
|
||||
|
||||
EXPECT_EQ(slotList.size(), 3);
|
||||
|
||||
|
||||
@@ -121,9 +121,8 @@ namespace ScriptCanvas
|
||||
SCRIPT_CANVAS_GENERIC_FUNCTION_NODE_WITH_DEFAULTS(NormalizeWithDefault, NormalizeWithDefaultInputOverrides, "Math/Vector3", "{1A56B08E-7E48-4240-878A-397A912519B6}", "description placeholder", "Vector", "Tolerance", "Fake Testing Default Value");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenerics)
|
||||
{
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, NodeGenerics)
|
||||
{
|
||||
using namespace ScriptCanvasEditor;
|
||||
|
||||
RegisterComponentDescriptor<ArgsNoReturnNode>();
|
||||
@@ -167,37 +166,11 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenerics)
|
||||
|
||||
EXPECT_TRUE(Connect(*graph, noArgsReturnNodeID, "Out", normalizeWithDefaultNodeID, "In"));
|
||||
|
||||
TraceSuppressionBus::Broadcast(&TraceSuppressionRequests::SuppressPrintf, true);
|
||||
graph->GetEntity()->Activate();
|
||||
TraceSuppressionBus::Broadcast(&TraceSuppressionRequests::SuppressPrintf, false);
|
||||
|
||||
if (auto tolerance = normalizeWithDefaultNode->GetInput_UNIT_TEST<Data::NumberType>("Number: Tolerance"))
|
||||
{
|
||||
EXPECT_EQ(3.3, *tolerance);
|
||||
}
|
||||
else
|
||||
{
|
||||
ADD_FAILURE();
|
||||
}
|
||||
|
||||
if (auto fakeDefault = normalizeWithDefaultNode->GetInput_UNIT_TEST<Data::BooleanType>("Boolean: Fake Testing Default Value"))
|
||||
{
|
||||
EXPECT_TRUE(*fakeDefault);
|
||||
}
|
||||
else
|
||||
{
|
||||
ADD_FAILURE();
|
||||
}
|
||||
|
||||
delete graph->GetEntity();
|
||||
|
||||
EXPECT_EQ(unitTestHandler.SideEffectCount(), 3);
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByValue)
|
||||
TEST_F(ScriptCanvasTestFixture, NodeGenericsByValue)
|
||||
{
|
||||
|
||||
|
||||
using namespace ScriptCanvas;
|
||||
using namespace ScriptCanvas::Nodes;
|
||||
|
||||
@@ -276,29 +249,6 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByValue)
|
||||
EXPECT_TRUE(Connect(*graph, valueID3, "Get", valueID4, "Set"));
|
||||
EXPECT_TRUE(Connect(*graph, maxByValueID, "Result: TestBehaviorContextObject", valueID5, "Set"));
|
||||
|
||||
// execution
|
||||
EXPECT_TRUE(Connect(*graph, startID, "Out", maxByValueID, "In"));
|
||||
|
||||
graph->GetEntity()->Activate();
|
||||
|
||||
|
||||
value3 = valueNode3->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
value4 = valueNode4->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
value5 = valueNode5->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
|
||||
if (value3 && value4 && value5)
|
||||
{
|
||||
EXPECT_EQ(2, value3->GetValue());
|
||||
EXPECT_NE(value3, value1);
|
||||
EXPECT_NE(value3, value2);
|
||||
EXPECT_EQ(value3, value4);
|
||||
EXPECT_EQ(value3, value5);
|
||||
}
|
||||
else
|
||||
{
|
||||
ADD_FAILURE() << "Values were nullptr";
|
||||
}
|
||||
|
||||
delete graph->GetEntity();
|
||||
|
||||
m_serializeContext->EnableRemoveReflection();
|
||||
@@ -309,7 +259,7 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByValue)
|
||||
m_behaviorContext->DisableRemoveReflection();
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByPointer)
|
||||
TEST_F(ScriptCanvasTestFixture, NodeGenericsByPointer)
|
||||
{
|
||||
using namespace ScriptCanvas;
|
||||
using namespace ScriptCanvas::Nodes;
|
||||
@@ -392,25 +342,6 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByPointer)
|
||||
// execution
|
||||
EXPECT_TRUE(Connect(*graph, startID, "Out", maxByValueID, "In"));
|
||||
|
||||
graph->GetEntity()->Activate();
|
||||
|
||||
value3 = valueNode3->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
value4 = valueNode4->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
value5 = valueNode5->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
|
||||
if (value3 && value4 && value5)
|
||||
{
|
||||
EXPECT_EQ(2, value3->GetValue());
|
||||
EXPECT_NE(value3, value1);
|
||||
EXPECT_EQ(value3, value2);
|
||||
EXPECT_EQ(value3, value4);
|
||||
EXPECT_EQ(value3, value5);
|
||||
}
|
||||
else
|
||||
{
|
||||
ADD_FAILURE() << "Values were nullptr";
|
||||
}
|
||||
|
||||
delete graph->GetEntity();
|
||||
|
||||
m_serializeContext->EnableRemoveReflection();
|
||||
@@ -421,7 +352,7 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByPointer)
|
||||
m_behaviorContext->DisableRemoveReflection();
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByReference)
|
||||
TEST_F(ScriptCanvasTestFixture, NodeGenericsByReference)
|
||||
{
|
||||
using namespace ScriptCanvas;
|
||||
using namespace ScriptCanvas::Nodes;
|
||||
@@ -501,28 +432,6 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByReference)
|
||||
EXPECT_TRUE(Connect(*graph, valueID3, "Get", valueID4, "Set"));
|
||||
EXPECT_TRUE(Connect(*graph, maxByValueID, "Result: TestBehaviorContextObject", valueID5, "Set"));
|
||||
|
||||
// execution
|
||||
EXPECT_TRUE(Connect(*graph, startID, "Out", maxByValueID, "In"));
|
||||
|
||||
graph->GetEntity()->Activate();
|
||||
|
||||
value3 = valueNode3->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
value4 = valueNode4->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
value5 = valueNode5->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
|
||||
if (value3 && value4 && value5)
|
||||
{
|
||||
EXPECT_EQ(2, value3->GetValue());
|
||||
EXPECT_NE(value3, value1);
|
||||
EXPECT_EQ(value3, value2);
|
||||
EXPECT_EQ(value3, value4);
|
||||
EXPECT_EQ(value3, value5);
|
||||
}
|
||||
else
|
||||
{
|
||||
ADD_FAILURE() << "Values were nullptr";
|
||||
}
|
||||
|
||||
delete graph->GetEntity();
|
||||
|
||||
m_serializeContext->EnableRemoveReflection();
|
||||
@@ -533,7 +442,7 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByReference)
|
||||
m_behaviorContext->DisableRemoveReflection();
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByValueInteger)
|
||||
TEST_F(ScriptCanvasTestFixture, NodeGenericsByValueInteger)
|
||||
{
|
||||
using namespace ScriptCanvas;
|
||||
using namespace ScriptCanvas::Nodes;
|
||||
@@ -603,30 +512,6 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByValueInteger)
|
||||
EXPECT_TRUE(Connect(*graph, valueID3, "Get", valueID4, "Set"));
|
||||
EXPECT_TRUE(Connect(*graph, maxByValueID, "Result: Number", valueID5, "Set"));
|
||||
|
||||
// execution
|
||||
EXPECT_TRUE(Connect(*graph, startID, "Out", maxByValueID, "In"));
|
||||
|
||||
graph->GetEntity()->Activate();
|
||||
|
||||
value3 = valueNode3->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
value4 = valueNode4->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
value5 = valueNode5->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
|
||||
if (value3 && value4 && value5)
|
||||
{
|
||||
EXPECT_EQ(2, *value3);
|
||||
EXPECT_EQ(2, *value4);
|
||||
EXPECT_EQ(2, *value5);
|
||||
EXPECT_NE(value3, value1);
|
||||
EXPECT_NE(value3, value2);
|
||||
EXPECT_NE(value3, value4);
|
||||
EXPECT_NE(value3, value5);
|
||||
}
|
||||
else
|
||||
{
|
||||
ADD_FAILURE() << "Values were nullptr";
|
||||
}
|
||||
|
||||
delete graph->GetEntity();
|
||||
|
||||
m_serializeContext->EnableRemoveReflection();
|
||||
@@ -637,10 +522,8 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByValueInteger)
|
||||
m_behaviorContext->DisableRemoveReflection();
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByPointerInteger)
|
||||
TEST_F(ScriptCanvasTestFixture, NodeGenericsByPointerInteger)
|
||||
{
|
||||
|
||||
|
||||
using namespace ScriptCanvas;
|
||||
using namespace ScriptCanvas::Nodes;
|
||||
|
||||
@@ -709,30 +592,8 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByPointerInteger)
|
||||
EXPECT_TRUE(Connect(*graph, valueID3, "Get", valueID4, "Set"));
|
||||
EXPECT_TRUE(Connect(*graph, maxByValueID, "Result: Number", valueID5, "Set"));
|
||||
|
||||
// execution
|
||||
EXPECT_TRUE(Connect(*graph, startID, "Out", maxByValueID, "In"));
|
||||
|
||||
graph->GetEntity()->Activate();
|
||||
|
||||
value3 = valueNode3->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
value4 = valueNode4->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
value5 = valueNode5->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
|
||||
if (value3 && value4 && value5)
|
||||
{
|
||||
EXPECT_EQ(2, *value3);
|
||||
EXPECT_EQ(2, *value4);
|
||||
EXPECT_EQ(2, *value5);
|
||||
EXPECT_NE(value3, value1);
|
||||
EXPECT_NE(value3, value2);
|
||||
EXPECT_NE(value3, value4);
|
||||
EXPECT_NE(value3, value5);
|
||||
}
|
||||
else
|
||||
{
|
||||
ADD_FAILURE() << "Values were nullptr";
|
||||
}
|
||||
|
||||
delete graph->GetEntity();
|
||||
|
||||
m_serializeContext->EnableRemoveReflection();
|
||||
@@ -743,7 +604,7 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByPointerInteger)
|
||||
m_behaviorContext->DisableRemoveReflection();
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByReferenceInteger)
|
||||
TEST_F(ScriptCanvasTestFixture, NodeGenericsByReferenceInteger)
|
||||
{
|
||||
using namespace ScriptCanvas;
|
||||
using namespace ScriptCanvas::Nodes;
|
||||
@@ -813,30 +674,8 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByReferenceInteger)
|
||||
EXPECT_TRUE(Connect(*graph, valueID3, "Get", valueID4, "Set"));
|
||||
EXPECT_TRUE(Connect(*graph, maxByValueID, "Result: Number", valueID5, "Set"));
|
||||
|
||||
// execution
|
||||
EXPECT_TRUE(Connect(*graph, startID, "Out", maxByValueID, "In"));
|
||||
|
||||
graph->GetEntity()->Activate();
|
||||
|
||||
value3 = valueNode3->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
value4 = valueNode4->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
value5 = valueNode5->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
|
||||
if (value3 && value4 && value5)
|
||||
{
|
||||
EXPECT_EQ(2, *value3);
|
||||
EXPECT_EQ(2, *value4);
|
||||
EXPECT_EQ(2, *value5);
|
||||
EXPECT_NE(value3, value1);
|
||||
EXPECT_NE(value3, value2);
|
||||
EXPECT_NE(value3, value4);
|
||||
EXPECT_NE(value3, value5);
|
||||
}
|
||||
else
|
||||
{
|
||||
ADD_FAILURE() << "Values were nullptr";
|
||||
}
|
||||
|
||||
delete graph->GetEntity();
|
||||
|
||||
m_serializeContext->EnableRemoveReflection();
|
||||
@@ -847,7 +686,7 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByReferenceInteger)
|
||||
m_behaviorContext->DisableRemoveReflection();
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByValueMulti)
|
||||
TEST_F(ScriptCanvasTestFixture, NodeGenericsByValueMulti)
|
||||
{
|
||||
using namespace ScriptCanvas;
|
||||
using namespace ScriptCanvas::Nodes;
|
||||
@@ -966,47 +805,8 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByValueMulti)
|
||||
EXPECT_TRUE(Connect(*graph, valueIntegerID3, "Get", valueIntegerID4, "Set"));
|
||||
EXPECT_TRUE(Connect(*graph, maxByValueID, "Result: Number", valueIntegerID5, "Set"));
|
||||
|
||||
// execution
|
||||
EXPECT_TRUE(Connect(*graph, startID, "Out", maxByValueID, "In"));
|
||||
|
||||
graph->GetEntity()->Activate();
|
||||
|
||||
valueInteger3 = valueIntegerNode3->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
valueInteger4 = valueIntegerNode4->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
valueInteger5 = valueIntegerNode5->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
|
||||
if (valueInteger3 && valueInteger4 && valueInteger5)
|
||||
{
|
||||
EXPECT_EQ(2, *valueInteger3);
|
||||
EXPECT_EQ(2, *valueInteger4);
|
||||
EXPECT_EQ(2, *valueInteger5);
|
||||
EXPECT_NE(valueInteger3, valueInteger1);
|
||||
EXPECT_NE(valueInteger3, valueInteger2);
|
||||
EXPECT_NE(valueInteger3, valueInteger4);
|
||||
EXPECT_NE(valueInteger3, valueInteger5);
|
||||
}
|
||||
else
|
||||
{
|
||||
ADD_FAILURE() << "Values were nullptr";
|
||||
}
|
||||
|
||||
value3 = valueNode3->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
value4 = valueNode4->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
value5 = valueNode5->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
|
||||
if (value3 && value4 && value5)
|
||||
{
|
||||
EXPECT_EQ(2, value3->GetValue());
|
||||
EXPECT_NE(value3, value1);
|
||||
EXPECT_NE(value3, value2);
|
||||
EXPECT_EQ(value3, value4);
|
||||
EXPECT_EQ(value3, value5);
|
||||
}
|
||||
else
|
||||
{
|
||||
ADD_FAILURE() << "Values were nullptr";
|
||||
}
|
||||
|
||||
delete graph->GetEntity();
|
||||
|
||||
m_serializeContext->EnableRemoveReflection();
|
||||
@@ -1017,7 +817,7 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByValueMulti)
|
||||
m_behaviorContext->DisableRemoveReflection();
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByReferenceMulti)
|
||||
TEST_F(ScriptCanvasTestFixture, NodeGenericsByReferenceMulti)
|
||||
{
|
||||
using namespace ScriptCanvas;
|
||||
using namespace ScriptCanvas::Nodes;
|
||||
@@ -1136,47 +936,8 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByReferenceMulti)
|
||||
EXPECT_TRUE(Connect(*graph, valueIntegerID3, "Get", valueIntegerID4, "Set"));
|
||||
EXPECT_TRUE(Connect(*graph, maxByReferenceID, "Result: Number", valueIntegerID5, "Set"));
|
||||
|
||||
// execution
|
||||
EXPECT_TRUE(Connect(*graph, startID, "Out", maxByReferenceID, "In"));
|
||||
|
||||
graph->GetEntity()->Activate();
|
||||
|
||||
valueInteger3 = valueIntegerNode3->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
valueInteger4 = valueIntegerNode4->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
valueInteger5 = valueIntegerNode5->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
|
||||
if (valueInteger3 && valueInteger4 && valueInteger5)
|
||||
{
|
||||
EXPECT_EQ(2, *valueInteger3);
|
||||
EXPECT_EQ(2, *valueInteger4);
|
||||
EXPECT_EQ(2, *valueInteger5);
|
||||
EXPECT_NE(valueInteger3, valueInteger1);
|
||||
EXPECT_NE(valueInteger3, valueInteger2);
|
||||
EXPECT_NE(valueInteger3, valueInteger4);
|
||||
EXPECT_NE(valueInteger3, valueInteger5);
|
||||
}
|
||||
else
|
||||
{
|
||||
ADD_FAILURE() << "Values were nullptr";
|
||||
}
|
||||
|
||||
value3 = valueNode3->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
value4 = valueNode4->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
value5 = valueNode5->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
|
||||
if (value3 && value4 && value5)
|
||||
{
|
||||
EXPECT_EQ(2, value3->GetValue());
|
||||
EXPECT_NE(value3, value1);
|
||||
EXPECT_EQ(value3, value2);
|
||||
EXPECT_EQ(value3, value4);
|
||||
EXPECT_EQ(value3, value5);
|
||||
}
|
||||
else
|
||||
{
|
||||
ADD_FAILURE() << "Values were nullptr";
|
||||
}
|
||||
|
||||
delete graph->GetEntity();
|
||||
|
||||
m_serializeContext->EnableRemoveReflection();
|
||||
@@ -1187,7 +948,7 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByReferenceMulti)
|
||||
m_behaviorContext->DisableRemoveReflection();
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByPointerMulti)
|
||||
TEST_F(ScriptCanvasTestFixture, NodeGenericsByPointerMulti)
|
||||
{
|
||||
using namespace ScriptCanvas;
|
||||
using namespace ScriptCanvas::Nodes;
|
||||
@@ -1306,47 +1067,8 @@ TEST_F(ScriptCanvasTestFixture, DISABLED_NodeGenericsByPointerMulti)
|
||||
EXPECT_TRUE(Connect(*graph, valueIntegerID3, "Get", valueIntegerID4, "Set"));
|
||||
EXPECT_TRUE(Connect(*graph, maxByPointerID, "Result: Number", valueIntegerID5, "Set"));
|
||||
|
||||
// execution
|
||||
EXPECT_TRUE(Connect(*graph, startID, "Out", maxByPointerID, "In"));
|
||||
|
||||
graph->GetEntity()->Activate();
|
||||
|
||||
valueInteger3 = valueIntegerNode3->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
valueInteger4 = valueIntegerNode4->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
valueInteger5 = valueIntegerNode5->GetInput_UNIT_TEST<Data::NumberType>("Set");
|
||||
|
||||
if (valueInteger3 && valueInteger4 && valueInteger5)
|
||||
{
|
||||
EXPECT_EQ(2, *valueInteger3);
|
||||
EXPECT_EQ(2, *valueInteger4);
|
||||
EXPECT_EQ(2, *valueInteger5);
|
||||
EXPECT_NE(valueInteger3, valueInteger1);
|
||||
EXPECT_NE(valueInteger3, valueInteger2);
|
||||
EXPECT_NE(valueInteger3, valueInteger4);
|
||||
EXPECT_NE(valueInteger3, valueInteger5);
|
||||
}
|
||||
else
|
||||
{
|
||||
ADD_FAILURE() << "Values were nullptr";
|
||||
}
|
||||
|
||||
value3 = valueNode3->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
value4 = valueNode4->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
value5 = valueNode5->GetInput_UNIT_TEST<TestBehaviorContextObject>("Set");
|
||||
|
||||
if (value3 && value4 && value5)
|
||||
{
|
||||
EXPECT_EQ(2, value3->GetValue());
|
||||
EXPECT_NE(value3, value1);
|
||||
EXPECT_EQ(value3, value2);
|
||||
EXPECT_EQ(value3, value4);
|
||||
EXPECT_EQ(value3, value5);
|
||||
}
|
||||
else
|
||||
{
|
||||
ADD_FAILURE() << "Values were nullptr";
|
||||
}
|
||||
|
||||
delete graph->GetEntity();
|
||||
|
||||
m_serializeContext->EnableRemoveReflection();
|
||||
|
||||
@@ -90,6 +90,11 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedHelloWorld)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_HelloWorld");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedEventHandlerNoDisconnect)
|
||||
{
|
||||
GlobalHandler handler;
|
||||
@@ -120,16 +125,6 @@ TEST_F(ScriptCanvasTestFixture, InterpretedEventHandlerDisconnect)
|
||||
RunUnitTestGraph("LY_SC_UnitTest_EventHandlerDisconnect", runSpec);
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedUseSubgraphWithStartAndEBus)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTests_UseSubgraphWithStartAndEBus");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedDeviousStateFunctionFixGraph)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_DeviousStateFunctionFixGraph");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedFixBoundMultipleResults)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_FixBoundMultipleResults");
|
||||
@@ -137,12 +132,12 @@ TEST_F(ScriptCanvasTestFixture, InterpretedFixBoundMultipleResults)
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedDetectSelfDeactivation)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_DetectSelfDeactivation", "scriptcanvas");
|
||||
ExpectParseError("LY_SC_UnitTest_DetectSelfDeactivation");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedDetectSelfDeactivationSequence)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_DetectSelfDeactivationSequence", "scriptcanvas");
|
||||
ExpectParseError("LY_SC_UnitTest_DetectSelfDeactivationSequence");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedEraseFrontUntilEmpty)
|
||||
@@ -225,11 +220,6 @@ TEST_F(ScriptCanvasTestFixture, InterpretedMathRunAllVector4Nodes)
|
||||
RunUnitTestGraph("LY_SC_UnitTest_RunAllVector4Nodes");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedCallFunctionLocalValues)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_CallFunctionLocalValues");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSelfDeactivateParseError1)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_SelfDeactivateParseError");
|
||||
@@ -268,26 +258,6 @@ TEST_F(ScriptCanvasTestFixture, InterpretedChainedInfiniteLoop)
|
||||
RunUnitTestGraph("LY_SC_UnitTest_ChainedInfiniteLoop", spec);
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseFunctionLocalObjects)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_FunctionLocalObjects", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedFunctionLocalObjectsCall)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_FunctionLocalObjectsCall", ExecutionMode::Interpreted, DurationSpec::Ticks(31));
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseFunctionWithOnGraphStart)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_FunctionWithOnGraphStart", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedUseFunctionWithOnGraphStart)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_UseFunctionWithOnGraphStart");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedGetTimeAtCurrentTickRegression)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_GetTimeAtCurrentTickRegression");
|
||||
@@ -303,64 +273,24 @@ TEST_F(ScriptCanvasTestFixture, InterpretedUnhandledEventReturnValueTypeChangeTu
|
||||
RunUnitTestGraph("LY_SC_UnitTest_UnhandledEventReturnValueTypeChangeTuple");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseOrderedSequencerFunction)
|
||||
TEST_F(ScriptCanvasTestFixture, NodeableDurationFunction)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_OrderedSequencerFunction", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseFunction_Names_With_Spaces)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_Function Names With Spaces", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseFunctionNameEvilVersion)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_Function Names(With) Random+Strings Evil~Version", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseFunctionNameEvilVersionInFolder)
|
||||
{
|
||||
ExpectParse("TestFunction/LY_SC_UnitTest_Function Names(With) Random+Strings Evil~Version-In^Forder", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseNodeableDurationFunction)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_NodeableDurationFunction", "scriptcanvas_fn");
|
||||
ExpectParse("LY_SC_UnitTest_NodeableDurationFunction");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, NodeableDurationSubgraph)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_NodeableDurationSubgraph", ExecutionMode::Interpreted, DurationSpec::Ticks(3));
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseNodeableDurationFunctionDirectExposure)
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, NodeableDurationFunctionDirectExposeOut)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_NodeableDurationFunctionDirectExposure", "scriptcanvas_fn");
|
||||
ExpectParse("LY_SC_UnitTest_NodeableDurationFunctionDirectExposeOut");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseNodeableDurationFunctionDirectExposureWithOutput)
|
||||
TEST_F(ScriptCanvasTestFixture, NodeableDurationSubgraphDirectExposedOut)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_NodeableDurationFunctionDirectExposureWithOutput", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, NodeableDurationSubgraphDirectionExposedOut)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_NodeableDurationSubgraphDirectionExposedOut", ExecutionMode::Interpreted, DurationSpec::Ticks(3));
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, NodeableDurationSubgraphDirectionExposedOutWithOutput)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_NodeableDurationSubgraphDirectionExposedOutWithOutput", ExecutionMode::Interpreted, DurationSpec::Ticks(3));
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, NodeableDurationSubgraphOnTickDiagnostic)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_NodeableDurationSubgraphOnTickDiagnostic", ExecutionMode::Interpreted, DurationSpec::Ticks(3));
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseFunctionBranchSingleNamedOutJustReturns)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_ParseFunctionBranchSingleNamedOutJustReturns", "scriptcanvas_fn");
|
||||
RunUnitTestGraph("LY_SC_UnitTest_NodeableDurationSubgraphDirectExposedOut", ExecutionMode::Interpreted, DurationSpec::Ticks(3));
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ForEachNodeNoInputParseError)
|
||||
@@ -368,66 +298,21 @@ TEST_F(ScriptCanvasTestFixture, ForEachNodeNoInputParseError)
|
||||
ExpectParseError("LY_SC_UnitTest_ForEachNodeNoInputParseError");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseExposeAnyOut)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_ExposeAnyOut", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseMultipleInputNoParseError)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_MultipleInputNoParseError", "scriptcanvas");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraphMultipleInError)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_InterpretedSubgraphMultipleInError", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraphMultipleOutError)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_InterpretedSubgraphMultipleOutError", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraphOutInLoop)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_InterpretedSubgraphOutInLoop", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraphOutMidCycleMissingSlots)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_InterpretedSubgraphOutMidCycleMissingSlots", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedCycleDetectError)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_CycleDetectError");
|
||||
}
|
||||
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedCycleDetectSimple)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_CycleDetectSimple");
|
||||
}
|
||||
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedMultipleOutDataFlowParseError)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_MultipleOutDataFlowParseError");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraphComplexityError)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_SubgraphComplexityError", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraphReturnValueFromIn)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_SubgraphReturnValueFromIn", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraphReturnValueFromInOut)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_SubgraphReturnValueFromInOut", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSimultaneousDataInputError)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_SimultaneousDataInputError");
|
||||
@@ -438,31 +323,6 @@ TEST_F(ScriptCanvasTestFixture, InterpretedAnyAsTailNoOp)
|
||||
RunUnitTestGraph("LY_SC_UnitTest_AnyAsTailNoOp");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedVerifyByValueCorrectness)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_VerifyByValueCorrectness", ExecutionMode::Interpreted);
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedFunctionNoInputOneOutputCall)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_FunctionNoInputOneOutputCall", ExecutionMode::Interpreted);
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedFunctionAddVector3Call)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_FunctionAddVector3Call", ExecutionMode::Interpreted);
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraph_UserNodeable)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_Subgraph_UserNodeable", "scriptcanvas");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraph_UserNodeableLatent)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_Subgraph_UserNodeableLatent", "scriptcanvas");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedConstructionVariableOrder)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_ConstructionVariableOrder", ExecutionMode::Interpreted);
|
||||
@@ -853,31 +713,6 @@ TEST_F(ScriptCanvasTestFixture, InterpretedOrderedSequencer)
|
||||
RunUnitTestGraph("LY_SC_UnitTest_OrderedSequencer", ExecutionMode::Interpreted);
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedParseFunction)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_ParseFunction", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedParseFunctionBranch)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_ParseFunctionBranch", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedParseFunctionBranchDefaultOut)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_ParseFunctionBranchDefaultOut", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedParseFunctionDefaultOut)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_ParseFunctionDefaultOut", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedParseFunctionOut)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_ParseFunctionOut", "scriptcanvas_fn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedPerformance)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_Performance", ExecutionMode::Interpreted);
|
||||
@@ -902,22 +737,22 @@ TEST_F(ScriptCanvasTestFixture, InterpretedProperties)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_Properties", ExecutionMode::Interpreted);
|
||||
}
|
||||
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedPropertiesLiteReference)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_PropertiesLite", ExecutionMode::Interpreted);
|
||||
}
|
||||
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedPropertiesLiteConnection)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_PropertiesByConnection", ExecutionMode::Interpreted);
|
||||
}
|
||||
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedPropertiesRecursion)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_PropertiesRecursion", ExecutionMode::Interpreted);
|
||||
}
|
||||
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedPropertiesSet)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_PropertiesSet", ExecutionMode::Interpreted);
|
||||
@@ -928,21 +763,6 @@ TEST_F(ScriptCanvasTestFixture, InterpretedRandomSignal)
|
||||
RunUnitTestGraph("LY_SC_UnitTest_RandomSignal", ExecutionMode::Interpreted);
|
||||
}
|
||||
|
||||
// TEST_F(ScriptCanvasTestFixture, InterpretedSubgraph_CallAllFunctions)
|
||||
//{
|
||||
// RunUnitTestGraph("LY_SC_UnitTest_Subgraph_CallAllFunctions", ExecutionMode::Interpreted);
|
||||
//}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedScript_Names_Tolerate_Spaces)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_Script Names Tolerate Spaces");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedScriptNameEvilVersion)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_Script Names(With) Random+Strings Evil~Version");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedStringFormat)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_StringFormat", ExecutionMode::Interpreted);
|
||||
@@ -1051,7 +871,7 @@ TEST_F(ScriptCanvasTestFixture, InterpretedBranchInputValuePointerReferenceType)
|
||||
RunUnitTestGraph("LY_SC_UnitTest_BranchInputValuePointerReferenceType");
|
||||
}
|
||||
|
||||
// Graph was not marked complete
|
||||
// \todo formal support of shared slots
|
||||
// TEST_F(ScriptCanvasTestFixture, InterpretedNodeableBranchMethodSharedDataSlot)
|
||||
// {
|
||||
// RunUnitTestGraph("LY_SC_UnitTest_NodeableBranchMethodSharedDataSlot", ExecutionMode::Interpreted);
|
||||
@@ -1061,3 +881,181 @@ TEST_F(ScriptCanvasTestFixture, InterpretedNodeableInputMethodSharedDataSlot)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_NodeableInputMethodSharedDataSlot", ExecutionMode::Interpreted);
|
||||
}
|
||||
|
||||
#if defined(FUNCTION_LEGACY_SUPPORT_ENABLED)
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraph_UserNodeable)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_Subgraph_UserNodeableD");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraph_UserNodeableLatent)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_Subgraph_UserNodeableLatent");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedUseFunctionWithOnGraphStart)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_UseFunctionWithOnGraphStart");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedUseSubgraphWithStartAndEBus)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTests_UseSubgraphWithStartAndEBus");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedDeviousStateFunctionFixGraph)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_DeviousStateFunctionFixGraph");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedCallFunctionLocalValues)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_CallFunctionLocalValues");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseFunctionLocalObjects)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_FunctionLocalObjects");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedFunctionLocalObjectsCall)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_FunctionLocalObjectsCall", ExecutionMode::Interpreted, DurationSpec::Ticks(31));
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseFunctionWithOnGraphStart)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_FunctionWithOnGraphStart");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, NodeableDurationSubgraphDirectionExposedOutWithOutput)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_NodeableDurationSubgraphDirectionExposedOutWithOutput", ExecutionMode::Interpreted, DurationSpec::Ticks(3));
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseOrderedSequencerFunction)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_OrderedSequencerFunction");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseFunction_Names_With_Spaces)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_Function Names With Spaces");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseFunctionNameEvilVersion)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_Function Names(With) Random+Strings Evil~Version");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseFunctionNameEvilVersionInFolder)
|
||||
{
|
||||
ExpectParse("TestFunction/LY_SC_UnitTest_Function Names(With) Random+Strings Evil~Version-In^Forder");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseNodeableDurationFunction)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_NodeableDurationFunction");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseNodeableDurationFunctionDirectExposure)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_NodeableDurationFunctionDirectExposure");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseNodeableDurationFunctionDirectExposureWithOutput)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_NodeableDurationFunctionDirectExposureWithOutput");
|
||||
}
|
||||
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseFunctionBranchSingleNamedOutJustReturns)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_ParseFunctionBranchSingleNamedOutJustReturns");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseExposeAnyOut)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_ExposeAnyOut");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, ParseMultipleInputNoParseError)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_MultipleInputNoParseError");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraphMultipleInError)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_InterpretedSubgraphMultipleInError");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraphMultipleOutError)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_InterpretedSubgraphMultipleOutError");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraphOutInLoop)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_InterpretedSubgraphOutInLoop");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraphOutMidCycleMissingSlots)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_InterpretedSubgraphOutMidCycleMissingSlots");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraphComplexityError)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_SubgraphComplexityError");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraphReturnValueFromIn)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_SubgraphReturnValueFromIn");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedSubgraphReturnValueFromInOut)
|
||||
{
|
||||
ExpectParseError("LY_SC_UnitTest_SubgraphReturnValueFromInOut");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedVerifyByValueCorrectness)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_VerifyByValueCorrectness", ExecutionMode::Interpreted);
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedFunctionNoInputOneOutputCall)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_FunctionNoInputOneOutputCall", ExecutionMode::Interpreted);
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedFunctionAddVector3Call)
|
||||
{
|
||||
RunUnitTestGraph("LY_SC_UnitTest_FunctionAddVector3Call", ExecutionMode::Interpreted);
|
||||
}
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedParseFunction)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_ParseFunction");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedParseFunctionBranch)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_ParseFunctionBranch");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedParseFunctionBranchDefaultOut)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_ParseFunctionBranchDefaultOut");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedParseFunctionDefaultOut)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_ParseFunctionDefaultOut");
|
||||
}
|
||||
|
||||
TEST_F(ScriptCanvasTestFixture, InterpretedParseFunctionOut)
|
||||
{
|
||||
ExpectParse("LY_SC_UnitTest_ParseFunctionOut");
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user