From f03d4c80ff8e7ab95e4817d3ed6ff0e15f8176be Mon Sep 17 00:00:00 2001 From: Christian Kadluba <10721825+ckadluba@users.noreply.github.com> Date: Fri, 31 Dec 2021 01:56:32 +0100 Subject: [PATCH] Fixed target framework dependent test includes (exevute a lot more tests than before). --- .../GlobalSuppressions.cs | 2 +- .../Serilog.Sinks.MSSqlServer.Tests.csproj | 26 ++++++++++--------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/test/Serilog.Sinks.MSSqlServer.Tests/GlobalSuppressions.cs b/test/Serilog.Sinks.MSSqlServer.Tests/GlobalSuppressions.cs index 27e8ada0..7aa910bb 100644 --- a/test/Serilog.Sinks.MSSqlServer.Tests/GlobalSuppressions.cs +++ b/test/Serilog.Sinks.MSSqlServer.Tests/GlobalSuppressions.cs @@ -8,4 +8,4 @@ [assembly: SuppressMessage("Globalization", "CA1303:Do not pass literals as localized parameters", Justification = "Supplying string literals and not using resources is accepted within this project.", Scope = "namespaceanddescendants", Target = "Serilog.Sinks.MSSqlServer.Tests")] [assembly: SuppressMessage("Naming", "CA1707:Identifiers should not contain underscores", Justification = "Member names must match SQL server master DB objects.", Scope = "type", Target = "~T:Serilog.Sinks.MSSqlServer.Tests.TestUtils.sp_pkey")] [assembly: SuppressMessage("Naming", "CA1707:Identifiers should not contain underscores", Justification = "Member names must match SQL server master DB objects.", Scope = "type", Target = "~T:Serilog.Sinks.MSSqlServer.Tests.TestUtils.SysIndex_CCI")] -[assembly: SuppressMessage("Globalization", "CA1307:Specify StringComparison", Justification = "In net452 there is no Contains() overload that accepts a StringComparison specifier", Scope = "member", Target = "~M:Serilog.Sinks.MSSqlServer.Tests.TestUtils.DatabaseTestsBase.VerifyLogMessageWasWritten(System.String)")] +[assembly: SuppressMessage("Globalization", "CA1307:Specify StringComparison", Justification = "In net452 there is no Contains() overload that accepts a StringComparison specifier", Scope = "namespaceanddescendants", Target = "Serilog.Sinks.MSSqlServer.Tests")] diff --git a/test/Serilog.Sinks.MSSqlServer.Tests/Serilog.Sinks.MSSqlServer.Tests.csproj b/test/Serilog.Sinks.MSSqlServer.Tests/Serilog.Sinks.MSSqlServer.Tests.csproj index b7f42160..7b8faa89 100644 --- a/test/Serilog.Sinks.MSSqlServer.Tests/Serilog.Sinks.MSSqlServer.Tests.csproj +++ b/test/Serilog.Sinks.MSSqlServer.Tests/Serilog.Sinks.MSSqlServer.Tests.csproj @@ -1,7 +1,7 @@  - net452;netcoreapp3.1 + net452;net462;netcoreapp3.1 netstandard2.0 true Serilog.Sinks.MSSqlServer.Tests @@ -18,10 +18,7 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - + @@ -47,6 +44,14 @@ + + + + + + + + @@ -60,13 +65,10 @@ - - all - runtime; build; native; contentfiles; analyzers - - - - + + + +