From 825b14bfd495e290ef4533362e6e1f9f889fdd99 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 30 Oct 2019 15:02:25 +0100 Subject: [PATCH] ZoneCodeGenerator: Fix TestAsset not throwing an exception when info is missing due to wrong if condition --- src/ZoneCodeGenerator/Parsing/CommandFile/Tests/TestAsset.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZoneCodeGenerator/Parsing/CommandFile/Tests/TestAsset.cs b/src/ZoneCodeGenerator/Parsing/CommandFile/Tests/TestAsset.cs index 1f247a80..bb6880dc 100644 --- a/src/ZoneCodeGenerator/Parsing/CommandFile/Tests/TestAsset.cs +++ b/src/ZoneCodeGenerator/Parsing/CommandFile/Tests/TestAsset.cs @@ -42,7 +42,7 @@ namespace ZoneCodeGenerator.Parsing.CommandFile.Tests } var assetInfo = state.Repository.GetInformationFor(assetTypeWithMembers); - if (assetType == null) + if (assetInfo == null) { throw new LoadingException($"Could not find information for type '{assetTypeName}' to mark it as an asset."); }