-
Notifications
You must be signed in to change notification settings - Fork 734
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand SupportOSPlatform to mean minimum supported version
Windows7 => WIndows7, Windows8, Windows10, Windows11 Windows10 => Windows10, Windows11 Added windows only test assembly with MS generated SupportOSPlatform attribute
- Loading branch information
1 parent
5f6c8c2
commit 5e557a6
Showing
6 changed files
with
110 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.IO; | ||
using NUnit.Framework; | ||
|
||
namespace NUnit.Windows.Tests | ||
{ | ||
[TestFixture] | ||
public sealed class PathTest | ||
{ | ||
[Test] | ||
public void DirectorySeparator() | ||
{ | ||
Assert.That(Path.DirectorySeparatorChar, Is.EqualTo('\\')); | ||
} | ||
|
||
[Test] | ||
public void VolumeSeparator() | ||
{ | ||
Assert.That(Path.VolumeSeparatorChar, Is.EqualTo(':')); | ||
} | ||
|
||
[Test] | ||
public void PathSeparator() | ||
{ | ||
Assert.That(Path.PathSeparator, Is.EqualTo(';')); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net6.0-windows7;net8.0-windows10.0.19041.0</TargetFrameworks> | ||
<RootNamespace>NUnit.Windows.Tests</RootNamespace> | ||
<GenerateAssemblyInfo>true</GenerateAssemblyInfo> | ||
<EnableWindowsTargeting>true</EnableWindowsTargeting> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\framework\nunit.framework.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" /> | ||
<PackageReference Include="NUnit3TestAdapter" /> | ||
<PackageReference Include="NUnit.Analyzers" /> | ||
</ItemGroup> | ||
|
||
</Project> |