From 8350d5132fbf98adc6f14996b2fa5e685f8c99d8 Mon Sep 17 00:00:00 2001 From: James Thompson Date: Sun, 7 Apr 2024 18:42:16 +1000 Subject: [PATCH] Add in os specifier for tests & fix conditions --- .../ImpersonatingTargetWrapperTests.cs | 20 +++++++++---------- .../NLog.WindowsIdentity.Tests.csproj | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/NLog.WindowsIdentity.Tests/ImpersonatingTargetWrapperTests.cs b/tests/NLog.WindowsIdentity.Tests/ImpersonatingTargetWrapperTests.cs index 7b62c30..f00469c 100644 --- a/tests/NLog.WindowsIdentity.Tests/ImpersonatingTargetWrapperTests.cs +++ b/tests/NLog.WindowsIdentity.Tests/ImpersonatingTargetWrapperTests.cs @@ -7,10 +7,10 @@ // modification, are permitted provided that the following conditions // are met: // -// * Redistributions of source code must retain the above copyright notice, +// * Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // -// * Redistributions in binary form must reproduce the above copyright notice, +// * Redistributions in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // @@ -56,9 +56,9 @@ public ImpersonatingTargetWrapperTests() } #if NETFRAMEWORK - [Fact(Skip = "CreateUserIfNotPresent fails with NetCore")] -#else [Fact] +#else + [Fact(Skip = "CreateUserIfNotPresent fails with NetCore")] #endif public void ImpersonatingWrapperTest() { @@ -101,9 +101,9 @@ public void ImpersonatingWrapperTest() } #if NETFRAMEWORK - [Fact(Skip = "CreateUserIfNotPresent fails with NetCore")] -#else [Fact] +#else + [Fact(Skip = "CreateUserIfNotPresent fails with NetCore")] #endif public void RevertToSelfTest() { @@ -208,9 +208,9 @@ public void RevertToSameIdentity() } #if NETFRAMEWORK - [Fact(Skip = "CreateUserIfNotPresent fails with NetCore")] -#else [Fact] +#else + [Fact(Skip = "CreateUserIfNotPresent fails with NetCore")] #endif public void ImpersonatingWrapperNegativeTest() { @@ -243,9 +243,9 @@ public void ImpersonatingWrapperNegativeTest() } #if NETFRAMEWORK - [Fact(Skip = "CreateUserIfNotPresent fails with NetCore")] -#else [Fact] +#else + [Fact(Skip = "CreateUserIfNotPresent fails with NetCore")] #endif public void ImpersonatingWrapperNegativeTest2() { diff --git a/tests/NLog.WindowsIdentity.Tests/NLog.WindowsIdentity.Tests.csproj b/tests/NLog.WindowsIdentity.Tests/NLog.WindowsIdentity.Tests.csproj index 2fcfce0..b8b27e8 100644 --- a/tests/NLog.WindowsIdentity.Tests/NLog.WindowsIdentity.Tests.csproj +++ b/tests/NLog.WindowsIdentity.Tests/NLog.WindowsIdentity.Tests.csproj @@ -1,7 +1,7 @@  - net452;net461;netcoreapp3.1;net6.0 + net452;net461;netcoreapp3.1;net6.0-windows false ../NLogTests.snk