diff --git a/src/ZoneCodeGenerator/Generating/Templates/AssetStructTests.stg b/src/ZoneCodeGenerator/Generating/Templates/AssetStructTests.stg index aee47485..31429fac 100644 --- a/src/ZoneCodeGenerator/Generating/Templates/AssetStructTests.stg +++ b/src/ZoneCodeGenerator/Generating/Templates/AssetStructTests.stg @@ -34,7 +34,7 @@ namespace ZoneCommonTests { public: $TestMethod(context.Asset)$ - $context.Structures:{structure | $if(!structure.IsAsset)$$TestMethod(structure)$ + $context.UsedStructures:{structure | $if(!structure.Information.Type.IsAnonymous && !structure.Information.IsAsset)$$TestMethod(structure)$ $endif$}$ }; }