Diff of /project/device_b032fdcd/plc_logic_4bbe9722/application_8e35a463/fb_tests_91fe9bff/stack_377cdbf4/fb_payload_2aa27ef8/fb_payload_testsuite_bc77255a/pool_f109f7ae/test_claimnextfreekey_1ad96d3f/1ad96d3f9b9b43e78cd98de9e5f2c062.object [000000] .. [ad04f2]  Maximize  Restore

Switch to side-by-side view

--- a
+++ b/project/device_b032fdcd/plc_logic_4bbe9722/application_8e35a463/fb_tests_91fe9bff/stack_377cdbf4/fb_payload_2aa27ef8/fb_payload_testsuite_bc77255a/pool_f109f7ae/test_claimnextfreekey_1ad96d3f/1ad96d3f9b9b43e78cd98de9e5f2c062.object
@@ -0,0 +1 @@
+{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)1ad96d3f-9b9b-43e7-8cd9-8de9e5f2c062","ParentGuid":"(Guid)bc77255a-b8a1-4530-b798-1a47c64f0504","Name":"(string)Test_ClaimNextFreeKey","Properties":{"@Type":"2c41fa04:IDictionary","@Value":[{"@Key":"(Guid)829a18f2-c514-4f6e-9634-1df173429203","@Value":{"@Type":"829a18f2","@Value":{"ParentObjects":{"@Type":"fa2ee218:IDictionary","@Value":[{"@Key":"(Guid)d9b2b2cc-ea99-4c3b-aa42-1e5c49e65b84","@Value":"(Guid)f109f7ae-5c5f-4638-b861-d0331955f9a9"}]}}}}]},"TypeGuid":"(Guid)f8a58466-d7f6-439f-bbb8-d4600e41d099","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","829a18f2":"{829a18f2-c514-4f6e-9634-1df173429203}","fa2ee218":"{fa2ee218-a39b-4b6d-b249-49dbddbd168a}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"f8a58466","@Value":{"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)221","Tag":null,"Text":"(string)IF counit.TEST_ORDERED(__POUNAME()) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)340","Tag":null,"Text":"(string)\t// Get a column"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)230","Tag":null,"Text":"(string)\tObject1 REF= instFB_Payload.ClaimNextFreeKey(eError => eError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)321","Tag":null,"Text":"(string)\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)323","Tag":null,"Text":"(string)\tAssertEquals(Expected:= Expected_NoError, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)324","Tag":null,"Text":"(string)\t\tActual:= eError, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)325","Tag":null,"Text":"(string)\t\tMessage:= 'Wrong error when requesting Object1');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)326","Tag":null,"Text":"(string)\tAssertEquals_Bool(Expected:= TRUE, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)327","Tag":null,"Text":"(string)\t\tActual:= __ISVALIDREF(Object1), "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)322","Tag":null,"Text":"(string)\t\tMessage:= 'Did not get a valid Object from Object1');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)370","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)336","Tag":null,"Text":"(string)\tIF __ISVALIDREF(Object1) THEN // // Cannot Finish test if the first test fails"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)337","Tag":null,"Text":"(string)\t\t// Get another column\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)329","Tag":null,"Text":"(string)\t\tObject2 REF= instFB_Payload.ClaimNextFreeKey(eError => eError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)330","Tag":null,"Text":"(string)\t\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)331","Tag":null,"Text":"(string)\t\tAssertEquals(Expected:= Expected_NoError, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)332","Tag":null,"Text":"(string)\t\t\tActual:= eError, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)333","Tag":null,"Text":"(string)\t\t\tMessage:= 'Wrong error when requesting Object1');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)334","Tag":null,"Text":"(string)\t\tAssertEquals_Bool(Expected:= TRUE, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)335","Tag":null,"Text":"(string)\t\t\tActual:= __ISVALIDREF(Object2), "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)328","Tag":null,"Text":"(string)\t\t\tMessage:= 'Did not get a valid object from Object2');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)344","Tag":null,"Text":"(string)\t\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)345","Tag":null,"Text":"(string)\t\t// Prove that they are different objects"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)349","Tag":null,"Text":"(string)\t\tObject1.WStringValue := \"1\";"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)350","Tag":null,"Text":"(string)\t\tObject2.WStringValue := \"2\";"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)347","Tag":null,"Text":"(string)\t\tAssertFalse(Condition:= Object1.WStringValue = Object2.WStringValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)346","Tag":null,"Text":"(string)\t\t\tMessage:= 'Second object is the same object as the first');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)351","Tag":null,"Text":"(string)\t\t\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)352","Tag":null,"Text":"(string)\t\t//reset the columns and get a new column"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)353","Tag":null,"Text":"(string)\t\tinstFB_Payload.InitializeStructuredPayload();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)354","Tag":null,"Text":"(string)\t\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)355","Tag":null,"Text":"(string)\t\tObject3 REF= instFB_Payload.ClaimNextFreeKey(eError => eError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)356","Tag":null,"Text":"(string)\t\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)357","Tag":null,"Text":"(string)\t\tAssertEquals(Expected:= Expected_NoError, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)358","Tag":null,"Text":"(string)\t\t\tActual:= eError, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)359","Tag":null,"Text":"(string)\t\t\tMessage:= 'Wrong error when requesting object3');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)360","Tag":null,"Text":"(string)\t\tAssertEquals_Bool(Expected:= TRUE, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)361","Tag":null,"Text":"(string)\t\t\tActual:= __ISVALIDREF(Object3), "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)339","Tag":null,"Text":"(string)\t\t\tMessage:= 'Did not get a valid Object from Object3');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)362","Tag":null,"Text":"(string)\t\t\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)363","Tag":null,"Text":"(string)\t\t// Prove that the new object is the same object as column1"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)365","Tag":null,"Text":"(string)\t\tObject1.WStringValue := \"1\";"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)367","Tag":null,"Text":"(string)\t\tObject3.WStringValue := \"3\";"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)366","Tag":null,"Text":"(string)\t\tAssertTrue(Condition:= (Object1.WStringValue = Object3.WStringValue)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)368","Tag":null,"Text":"(string)\t\t\t\t\t\t\t\tAND (Object1.WStringValue = \"3\"),"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)364","Tag":null,"Text":"(string)\t\t\tMessage:= 'When you reset the payload, you were supposed to get the first Object again');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)369","Tag":null,"Text":"(string)\tEND_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)371","Tag":null,"Text":"(string)\tTEST_FINISHED();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)227","Tag":null,"Text":"(string)END_IF"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)372","Tag":null,"Text":"(string)// If you claim two objectss, they should be a different reference"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)373","Tag":null,"Text":"(string)// If you then initialize the payload, the very next object should be the same as the first"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)374","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)375","Tag":null,"Text":"(string)METHOD PRIVATE Test_ClaimNextFreeKey"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)376","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)377","Tag":null,"Text":"(string)\tinstFB_Payload : SPStack.FB_Payload;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)378","Tag":null,"Text":"(string)\tObject1 : REFERENCE TO SPStack.LinkedListWStringElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)379","Tag":null,"Text":"(string)\tObject2 : REFERENCE TO SPStack.LinkedListWStringElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)380","Tag":null,"Text":"(string)\tObject3 : REFERENCE TO SPStack.LinkedListWStringElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)381","Tag":null,"Text":"(string)\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)382","Tag":null,"Text":"(string)\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)383","Tag":null,"Text":"(string)\tExpected_NoError : SPStack.ERROR := SPStack.ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)384","Tag":null,"Text":"(string)\teError: SPStack.ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)385","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1","Tag":null,"Text":"(string)"}}]}}}}}}},"TypeInfos":{"3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","a5de0b0b":"{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","f8a58466":"{f8a58466-d7f6-439f-bbb8-d4600e41d099}","long":"System.Int64","string":"System.String"}}},"FormatVersion":"1.0"}
\ No newline at end of file