@ -207,28 +207,24 @@ TEST_F(ScriptCanvasTestFixture, RemoveVariableTest)
GraphVariableManagerRequestBus : : EventResult ( addPropertyOutcome , scriptCanvasId , & GraphVariableManagerRequests : : AddVariable , " FirstVector3 " , vector3Datum1 , false ) ;
GraphVariableManagerRequestBus : : EventResult ( addPropertyOutcome , scriptCanvasId , & GraphVariableManagerRequests : : AddVariable , " FirstVector3 " , vector3Datum1 , false ) ;
EXPECT_TRUE ( addPropertyOutcome ) ;
EXPECT_TRUE ( addPropertyOutcome ) ;
EXPECT_TRUE ( addPropertyOutcome . GetValue ( ) . IsValid ( ) ) ;
EXPECT_TRUE ( addPropertyOutcome . GetValue ( ) . IsValid ( ) ) ;
const VariableId firstVector3Id = addPropertyOutcome . GetValue ( ) ;
+ + numVariablesAdded ;
+ + numVariablesAdded ;
addPropertyOutcome = AZ : : Failure ( AZStd : : string ( " Uninitialized " ) ) ;
addPropertyOutcome = AZ : : Failure ( AZStd : : string ( " Uninitialized " ) ) ;
GraphVariableManagerRequestBus : : EventResult ( addPropertyOutcome , scriptCanvasId , & GraphVariableManagerRequests : : AddVariable , " SecondVector3 " , vector3Datum2 , false ) ;
GraphVariableManagerRequestBus : : EventResult ( addPropertyOutcome , scriptCanvasId , & GraphVariableManagerRequests : : AddVariable , " SecondVector3 " , vector3Datum2 , false ) ;
EXPECT_TRUE ( addPropertyOutcome ) ;
EXPECT_TRUE ( addPropertyOutcome ) ;
EXPECT_TRUE ( addPropertyOutcome . GetValue ( ) . IsValid ( ) ) ;
EXPECT_TRUE ( addPropertyOutcome . GetValue ( ) . IsValid ( ) ) ;
const VariableId secondVector3Id = addPropertyOutcome . GetValue ( ) ;
+ + numVariablesAdded ;
+ + numVariablesAdded ;
addPropertyOutcome = AZ : : Failure ( AZStd : : string ( " Uninitialized " ) ) ;
addPropertyOutcome = AZ : : Failure ( AZStd : : string ( " Uninitialized " ) ) ;
GraphVariableManagerRequestBus : : EventResult ( addPropertyOutcome , scriptCanvasId , & GraphVariableManagerRequests : : AddVariable , " FirstVector4 " , vector4Datum , false ) ;
GraphVariableManagerRequestBus : : EventResult ( addPropertyOutcome , scriptCanvasId , & GraphVariableManagerRequests : : AddVariable , " FirstVector4 " , vector4Datum , false ) ;
EXPECT_TRUE ( addPropertyOutcome ) ;
EXPECT_TRUE ( addPropertyOutcome ) ;
EXPECT_TRUE ( addPropertyOutcome . GetValue ( ) . IsValid ( ) ) ;
EXPECT_TRUE ( addPropertyOutcome . GetValue ( ) . IsValid ( ) ) ;
const VariableId firstVector4Id = addPropertyOutcome . GetValue ( ) ;
+ + numVariablesAdded ;
+ + numVariablesAdded ;
addPropertyOutcome = AZ : : Failure ( AZStd : : string ( " Uninitialized " ) ) ;
addPropertyOutcome = AZ : : Failure ( AZStd : : string ( " Uninitialized " ) ) ;
GraphVariableManagerRequestBus : : EventResult ( addPropertyOutcome , scriptCanvasId , & GraphVariableManagerRequests : : AddVariable , " ProjectionMatrix " , behaviorMatrix4x4Datum , false ) ;
GraphVariableManagerRequestBus : : EventResult ( addPropertyOutcome , scriptCanvasId , & GraphVariableManagerRequests : : AddVariable , " ProjectionMatrix " , behaviorMatrix4x4Datum , false ) ;
EXPECT_TRUE ( addPropertyOutcome ) ;
EXPECT_TRUE ( addPropertyOutcome ) ;
EXPECT_TRUE ( addPropertyOutcome . GetValue ( ) . IsValid ( ) ) ;
EXPECT_TRUE ( addPropertyOutcome . GetValue ( ) . IsValid ( ) ) ;
const VariableId projectionMatrixId = addPropertyOutcome . GetValue ( ) ;
+ + numVariablesAdded ;
+ + numVariablesAdded ;
addPropertyOutcome = AZ : : Failure ( AZStd : : string ( " Uninitialized " ) ) ;
addPropertyOutcome = AZ : : Failure ( AZStd : : string ( " Uninitialized " ) ) ;