68 ProtocolTest.assert(internalProperties[0].name === "terminated", `Worker '${expression}' should have 'terminated' internal property.`);
69 ProtocolTest.assert(internalProperties[0].value.type === "boolean", `Internal 'terminated' property of '${expression}' should be a boolean.`);
70 ProtocolTest.assert(internalProperties[0].value.value === terminated, `Internal 'terminated' property of '${expression}' should have value '${terminated}'.`);
69 ProtocolTest.assert(internalProperty, `Worker '${expression}' should have '${propertyName}' internal property.`);
70 ProtocolTest.assert(internalProperty.value.type === type, `Internal '${propertyName}' property of '${expression}' should be a boolean.`);
71 ProtocolTest.assert(internalProperty.value.value === internalPropertiesToCheck[propertyName], `Internal '${propertyName}' property of '${expression}' should have value '${internalPropertiesToCheck[propertyName]}'.`);
72 }
73 if ("name" in internalPropertiesToCheck)
74 checkInternalProperty("name", "string");
75 if ("terminated" in internalPropertiesToCheck)
76 checkInternalProperty("terminated", "boolean");