Skip to content

Commit

Permalink
Fix unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
MichielOda committed Oct 7, 2024
1 parent 1723c47 commit e58781e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@

<ItemGroup>
<InternalsVisibleTo Include="CICD.Tools.GitHubToCatalogYamlTests" />

<!-- Needed for Moq -->
<InternalsVisibleTo Include="DynamicProxyGenAssembly2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ private CatalogYaml CreateCatalogYaml(IDeserializer deserializer, out string fou

var yamlContent = fs.File.ReadAllText(filePath);
logger.LogDebug("Existing Configuration File Parsed.");
return deserializer.Deserialize<CatalogYaml>(yamlContent);
return deserializer.Deserialize<CatalogYaml>(yamlContent) ?? new CatalogYaml();
}

/// <summary>
Expand Down

0 comments on commit e58781e

Please sign in to comment.