From 2c755c6eec71d078beea0e8e310b687192a8dd5c Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Sun, 16 Jul 2023 04:11:00 +0200 Subject: [PATCH] Convert TreeDictionaryTests to xUnit --- src/Ryujinx.Tests/{ => Collections}/TreeDictionaryTests.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) rename src/Ryujinx.Tests/{ => Collections}/TreeDictionaryTests.cs (97%) diff --git a/src/Ryujinx.Tests/TreeDictionaryTests.cs b/src/Ryujinx.Tests/Collections/TreeDictionaryTests.cs similarity index 97% rename from src/Ryujinx.Tests/TreeDictionaryTests.cs rename to src/Ryujinx.Tests/Collections/TreeDictionaryTests.cs index 7163025b4..3255747de 100644 --- a/src/Ryujinx.Tests/TreeDictionaryTests.cs +++ b/src/Ryujinx.Tests/Collections/TreeDictionaryTests.cs @@ -1,5 +1,4 @@ using Ryujinx.Common.Collections; -using System; using System.Collections.Generic; using Xunit; using Xunit.Abstractions; @@ -44,7 +43,7 @@ namespace Ryujinx.Tests.Collections * */ - Assert.Equal(list.Count, dictionary.Count); + Assert.Equal(dictionary.Count, list.Count); Assert.Equal(2, list[0].Key); Assert.Equal(1, list[1].Key); Assert.Equal(4, list[2].Key); @@ -92,7 +91,7 @@ namespace Ryujinx.Tests.Collections { _testOutputHelper.WriteLine($"{node.Key} -> {node.Value}"); } - Assert.Equal(list.Count, dictionary.Count); + Assert.Equal(dictionary.Count, list.Count); Assert.Equal(4, list[0].Key); Assert.Equal(2, list[1].Key); Assert.Equal(10, list[2].Key); @@ -196,7 +195,7 @@ namespace Ryujinx.Tests.Collections foreach (KeyValuePair node in list) { - Console.WriteLine($"{node.Key} -> {node.Value}"); + _testOutputHelper.WriteLine($"{node.Key} -> {node.Value}"); } /*