diff --git a/Allure.XUnit/Allure.XUnit.csproj b/Allure.XUnit/Allure.XUnit.csproj index c3dd679..9af2ec8 100644 --- a/Allure.XUnit/Allure.XUnit.csproj +++ b/Allure.XUnit/Allure.XUnit.csproj @@ -2,7 +2,7 @@ Allure.Xunit.reporters - netcoreapp2.0;netstandard2.1;net5.0;net6.0 + netstandard2.0;netcoreapp3.1 true Shumakov Ivan Create beautiful reports from your xUnit.net tests. diff --git a/Allure.XUnit/AllureMessageSink.cs b/Allure.XUnit/AllureMessageSink.cs index cf901f9..a62332c 100644 --- a/Allure.XUnit/AllureMessageSink.cs +++ b/Allure.XUnit/AllureMessageSink.cs @@ -161,7 +161,7 @@ void OnTestFinished(MessageHandlerArgs args) }); } - this.allureTestData.Remove(test, out _); + this.allureTestData.TryRemove(test, out _); } AllureXunitTestData GetOrCreateTestData(ITest test) diff --git a/Allure.XUnit/AllureXunitHelper.cs b/Allure.XUnit/AllureXunitHelper.cs index 68d432b..71d18af 100644 --- a/Allure.XUnit/AllureXunitHelper.cs +++ b/Allure.XUnit/AllureXunitHelper.cs @@ -66,8 +66,8 @@ internal static void StartAllureTestCase( internal static void ApplyTestFailure(IFailureInformation failure) { - var trace = string.Join('\n', failure.StackTraces); - var message = string.Join('\n', failure.Messages); + var trace = string.Join("\n", failure.StackTraces); + var message = string.Join("\n", failure.Messages); var status = failure.ExceptionTypes.Any( exceptionType => !exceptionType.StartsWith("Xunit.Sdk.") ) ? Status.broken : Status.failed;