diff --git a/nuspec/nuget/Cake.Issues.Testing.nuspec b/nuspec/nuget/Cake.Issues.Testing.nuspec
index 9201296c7..99685b5ce 100644
--- a/nuspec/nuget/Cake.Issues.Testing.nuspec
+++ b/nuspec/nuget/Cake.Issues.Testing.nuspec
@@ -17,7 +17,7 @@ Common helpers for testing add-ins based on Cake.Issues
Copyright © BBT Software AG and contributors
Cake Script Cake-Issues Issues Testing
- https://github.com/cake-contrib/Cake.Issues/releases/tag/0.6.1
+ https://github.com/cake-contrib/Cake.Issues/releases/tag/0.6.2
diff --git a/nuspec/nuget/Cake.Issues.nuspec b/nuspec/nuget/Cake.Issues.nuspec
index c07df87ae..a4f6c93a1 100644
--- a/nuspec/nuget/Cake.Issues.nuspec
+++ b/nuspec/nuget/Cake.Issues.nuspec
@@ -24,7 +24,7 @@ See the Project Site for an overview of the whole ecosystem of addins for workin
Copyright © BBT Software AG and contributors
Cake Script Cake-Issues CodeAnalysis Linting Issues
- https://github.com/cake-contrib/Cake.Issues/releases/tag/0.6.1
+ https://github.com/cake-contrib/Cake.Issues/releases/tag/0.6.2
diff --git a/src/Cake.Issues.Testing/BaseConfigurableIssueProviderFixture.cs b/src/Cake.Issues.Testing/BaseConfigurableIssueProviderFixture.cs
index 761d90652..f1bc46d3b 100644
--- a/src/Cake.Issues.Testing/BaseConfigurableIssueProviderFixture.cs
+++ b/src/Cake.Issues.Testing/BaseConfigurableIssueProviderFixture.cs
@@ -20,9 +20,20 @@ public abstract class BaseConfigurableIssueProviderFixtureName of the resource to load.
protected BaseConfigurableIssueProviderFixture(string fileResourceName)
{
+ fileResourceName.NotNullOrWhiteSpace(nameof(fileResourceName));
+
+ var resourceName = this.FileResourceNamespace + fileResourceName;
+
using (var ms = new MemoryStream())
- using (var stream = this.GetType().Assembly.GetManifestResourceStream(this.FileResourceNamespace + fileResourceName))
+ using (var stream = this.GetType().Assembly.GetManifestResourceStream(resourceName))
{
+ if (stream == null)
+ {
+ throw new ArgumentException(
+ $"Resource {resourceName} not found",
+ nameof(fileResourceName));
+ }
+
stream.CopyTo(ms);
this.LogFileContent = ms.ToArray();
}
@@ -52,7 +63,7 @@ protected override IList