ZoneCodeGenerator: Fix TestAsset not throwing an exception when info is missing due to wrong if condition

This commit is contained in:
Jan 2019-10-30 15:02:25 +01:00
parent 799d3cbce7
commit 825b14bfd4

View File

@ -42,7 +42,7 @@ namespace ZoneCodeGenerator.Parsing.CommandFile.Tests
} }
var assetInfo = state.Repository.GetInformationFor(assetTypeWithMembers); 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."); throw new LoadingException($"Could not find information for type '{assetTypeName}' to mark it as an asset.");
} }