From cf5ab51f0d9a3f25823904772a6d2be0098c7676 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Sat, 11 Feb 2023 21:46:20 +0200 Subject: [PATCH] Cleanup --- GitHubActionsTestLogger.Tests/AnnotationSpecs.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")