Convert misc tests to xUnit

This commit is contained in:
TSR Berry 2023-07-16 04:11:23 +02:00
parent 2c755c6eec
commit 65d0bee674
No known key found for this signature in database
GPG key ID: 52353C0A4CCA15E2
2 changed files with 5 additions and 9 deletions

View file

@ -4,7 +4,7 @@ using Xunit;
namespace Ryujinx.Tests.HLE
{
public class SoftwareKeyboardTests
public class SoftwareKeyboardFacts
{
[Fact]
public void StripUnicodeControlCodes_NullInput()

View file

@ -60,8 +60,7 @@ namespace Ryujinx.Tests.Memory
[InlineData(true)]
public void PartialUnmap(bool readOnly)
{
// Memory aliasing tests fail on CI at the moment.
Skip.If(OperatingSystem.IsMacOS());
Skip.If(OperatingSystem.IsMacOS(), "Memory aliasing tests fail on CI at the moment.");
// Set up an address space to test partial unmapping.
// Should register the signal handler to deal with this on Windows.
@ -205,8 +204,7 @@ namespace Ryujinx.Tests.Memory
[SkippableFact]
public unsafe void PartialUnmapNative()
{
// Memory aliasing tests fail on CI at the moment.
Skip.If(OperatingSystem.IsMacOS());
Skip.If(OperatingSystem.IsMacOS(), "Memory aliasing tests fail on CI at the moment.");
// Set up an address space to test partial unmapping.
// Should register the signal handler to deal with this on Windows.
@ -286,8 +284,7 @@ namespace Ryujinx.Tests.Memory
[SuppressMessage("Interoperability", "CA1416: Validate platform compatibility")]
public void ThreadLocalMap()
{
// Only test in Windows, as this is only used on Windows and uses Windows APIs for trimming.
Skip.IfNot(OperatingSystem.IsWindows());
Skip.IfNot(OperatingSystem.IsWindows(), "This is only used on Windows and uses Windows APIs for trimming");
PartialUnmapState.Reset();
ref var state = ref PartialUnmapState.GetRef();
@ -323,8 +320,7 @@ namespace Ryujinx.Tests.Memory
[SkippableFact]
public unsafe void ThreadLocalMapNative()
{
// Only test in Windows, as this is only used on Windows and uses Windows APIs for trimming.
Skip.IfNot(OperatingSystem.IsWindows());
Skip.IfNot(OperatingSystem.IsWindows(), "This is only used on Windows and uses Windows APIs for trimming");
EnsureTranslator();