From ec8d4f3af5d951776ab9d494ca1c5cae7809c08f Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Thu, 9 Feb 2023 02:24:32 +0100 Subject: Replace unicorn bindings with Nuget package (#4378) * Replace unicorn bindings with Nuget package * Use nameof for ValueSource args * Remove redundant code from test projects * Fix wrong values for EmuStart() Add notes to address this later again * Improve formatting * Fix formatting/alignment issues --- Ryujinx.Tests/Cpu/CpuTestSystem.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Ryujinx.Tests/Cpu/CpuTestSystem.cs') diff --git a/Ryujinx.Tests/Cpu/CpuTestSystem.cs b/Ryujinx.Tests/Cpu/CpuTestSystem.cs index 02b1f1bd..cb8d9ce1 100644 --- a/Ryujinx.Tests/Cpu/CpuTestSystem.cs +++ b/Ryujinx.Tests/Cpu/CpuTestSystem.cs @@ -1,9 +1,7 @@ #define System using ARMeilleure.State; - using NUnit.Framework; - using System.Collections.Generic; namespace Ryujinx.Tests.Cpu @@ -40,7 +38,7 @@ namespace Ryujinx.Tests.Cpu #region "ValueSource (Opcodes)" private static uint[] _MrsMsr_Nzcv_() { - return new uint[] + return new[] { 0xD53B4200u, // MRS X0, NZCV 0xD51B4200u // MSR NZCV, X0 @@ -48,12 +46,10 @@ namespace Ryujinx.Tests.Cpu } #endregion - private const int RndCnt = 2; - [Test, Pairwise] public void MrsMsr_Nzcv([ValueSource("_MrsMsr_Nzcv_")] uint opcodes, [Values(0u, 1u, 31u)] uint rt, - [ValueSource("_GenNzcv_")] [Random(RndCnt)] ulong xt) + [ValueSource("_GenNzcv_")] ulong xt) { opcodes |= (rt & 31) << 0; @@ -70,4 +66,4 @@ namespace Ryujinx.Tests.Cpu } #endif } -} +} \ No newline at end of file -- cgit v1.2.3