Skip to content

Commit

Permalink
Add in os specifier for tests & fix conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
thompson-tomo committed Apr 7, 2024
1 parent dc61534 commit 74c4559
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down Expand Up @@ -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()
{
Expand Down Expand Up @@ -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()
{
Expand Down Expand Up @@ -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()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net452;net461;netcoreapp3.1;net6.0</TargetFrameworks>
<TargetFrameworks>net452;net461;netcoreapp3.1;net6.0-windows</TargetFrameworks>
<IsPackable>false</IsPackable>

<AssemblyOriginatorKeyFile>../NLogTests.snk</AssemblyOriginatorKeyFile>
Expand Down

0 comments on commit 74c4559

Please sign in to comment.