From c4ab5fff9ada6b2d903719dd6a0052d76a57c23d Mon Sep 17 00:00:00 2001 From: chcurran Date: Wed, 9 Jun 2021 14:52:55 -0700 Subject: [PATCH] testing code files for fixes for LYN-3777 --- .../Code/Source/Nodes/BehaviorContextObjectTestNode.h | 1 + .../Code/Tests/ScriptCanvas_RuntimeInterpreted.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Gems/ScriptCanvasTesting/Code/Source/Nodes/BehaviorContextObjectTestNode.h b/Gems/ScriptCanvasTesting/Code/Source/Nodes/BehaviorContextObjectTestNode.h index 7fa3896ff1..eba6b71169 100644 --- a/Gems/ScriptCanvasTesting/Code/Source/Nodes/BehaviorContextObjectTestNode.h +++ b/Gems/ScriptCanvasTesting/Code/Source/Nodes/BehaviorContextObjectTestNode.h @@ -53,6 +53,7 @@ namespace ScriptCanvasTestingNodes ->Method("SetString", &BehaviorContextObjectTest::SetString) ->Method("GetString", &BehaviorContextObjectTest::GetString) ->Property("Name", BehaviorValueProperty(&BehaviorContextObjectTest::m_name)) + ->Constant("Always24", BehaviorConstant(24)) ; } } diff --git a/Gems/ScriptCanvasTesting/Code/Tests/ScriptCanvas_RuntimeInterpreted.cpp b/Gems/ScriptCanvasTesting/Code/Tests/ScriptCanvas_RuntimeInterpreted.cpp index 5bda0f3941..e2665f31cf 100644 --- a/Gems/ScriptCanvasTesting/Code/Tests/ScriptCanvas_RuntimeInterpreted.cpp +++ b/Gems/ScriptCanvasTesting/Code/Tests/ScriptCanvas_RuntimeInterpreted.cpp @@ -90,6 +90,11 @@ public: } }; +TEST_F(ScriptCanvasTestFixture, UseBehaviorContextClassConstant) +{ + RunUnitTestGraph("LY_SC_UnitTest_UseBehaviorContextClassConstant"); +} + TEST_F(ScriptCanvasTestFixture, ParseFunctionIfBranchWithConnectedInput) { RunUnitTestGraph("LY_SC_UnitTest_ParseFunctionIfBranchWithConnectedInput");