diff --git a/GitHubActionsTestLogger.Tests/AnnotationSpecs.cs b/GitHubActionsTestLogger.Tests/AnnotationSpecs.cs index e8b0e7f..a2afeae 100644 --- a/GitHubActionsTestLogger.Tests/AnnotationSpecs.cs +++ b/GitHubActionsTestLogger.Tests/AnnotationSpecs.cs @@ -1,4 +1,5 @@ using System.IO; +using System.Reflection; using FluentAssertions; using GitHubActionsTestLogger.Tests.Utils; using GitHubActionsTestLogger.Tests.Utils.Extensions; @@ -219,7 +220,7 @@ public void Failed_tests_get_reported_with_approximate_source_information_if_exc // Act context.SimulateTestRun( new TestResultBuilder() - .SetSource(typeof(AnnotationSpecs).Assembly.Location) + .SetSource(Assembly.GetExecutingAssembly().Location) .SetDisplayName("Test1") .SetOutcome(TestOutcome.Failed) .SetErrorMessage("ErrorMessage")