From 043ebc2981f7fd90be7b42525da5f6bbb47836d8 Mon Sep 17 00:00:00 2001
From: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com>
Date: Thu, 1 Feb 2024 18:38:38 +0200
Subject: [PATCH 1/2] Skip coverage reporting for `Passwordless.Tests.Infra`
---
.../Passwordless.Tests.Infra/Passwordless.Tests.Infra.csproj | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/Passwordless.Tests.Infra/Passwordless.Tests.Infra.csproj b/tests/Passwordless.Tests.Infra/Passwordless.Tests.Infra.csproj
index 1dda393..678cf1a 100644
--- a/tests/Passwordless.Tests.Infra/Passwordless.Tests.Infra.csproj
+++ b/tests/Passwordless.Tests.Infra/Passwordless.Tests.Infra.csproj
@@ -4,6 +4,10 @@
netstandard2.0
+
+
+
+
@@ -13,5 +17,4 @@
-
From 74fc032ad2d7ce6548379f35e79fcd5329fa2c4a Mon Sep 17 00:00:00 2001
From: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com>
Date: Thu, 1 Feb 2024 18:48:34 +0200
Subject: [PATCH 2/2] asd
---
.../Passwordless.Tests.Infra.csproj | 2 +-
tests/Passwordless.Tests.Infra/Polyfill.cs | 13 +++++++++++--
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/tests/Passwordless.Tests.Infra/Passwordless.Tests.Infra.csproj b/tests/Passwordless.Tests.Infra/Passwordless.Tests.Infra.csproj
index 678cf1a..9e2b3dc 100644
--- a/tests/Passwordless.Tests.Infra/Passwordless.Tests.Infra.csproj
+++ b/tests/Passwordless.Tests.Infra/Passwordless.Tests.Infra.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ net6.0;net462
diff --git a/tests/Passwordless.Tests.Infra/Polyfill.cs b/tests/Passwordless.Tests.Infra/Polyfill.cs
index fec03c3..6a38857 100644
--- a/tests/Passwordless.Tests.Infra/Polyfill.cs
+++ b/tests/Passwordless.Tests.Infra/Polyfill.cs
@@ -4,7 +4,16 @@
// ReSharper disable InconsistentNaming
// ReSharper disable PartialTypeWithSinglePart
-namespace System.Runtime.CompilerServices;
+namespace System.Runtime.CompilerServices
+{
+ public static class IsExternalInit;
+}
+#endif
-public static class IsExternalInit;
+#if NETFRAMEWORK
+namespace System.Diagnostics.CodeAnalysis
+{
+ [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Event | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Struct, Inherited = false)]
+ public sealed class ExcludeFromCodeCoverageAttribute : Attribute;
+}
#endif
\ No newline at end of file