From 307b351d94fdaaaa7ff317c199987eca9f154b2f Mon Sep 17 00:00:00 2001 From: cnkz Date: Tue, 9 Jan 2024 17:59:23 +0100 Subject: [PATCH] fixes --- src/ManagedObjectSize.Tests/ObjectSizeTests.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ManagedObjectSize.Tests/ObjectSizeTests.cs b/src/ManagedObjectSize.Tests/ObjectSizeTests.cs index 36bf158..c3e04d7 100644 --- a/src/ManagedObjectSize.Tests/ObjectSizeTests.cs +++ b/src/ManagedObjectSize.Tests/ObjectSizeTests.cs @@ -252,6 +252,11 @@ static object CreateData(bool equal, int count) [DataRow(true, false)] public unsafe void ObjectSize_ReportsCorrectSize(bool useRtHelpers, bool useObjectPool) { + if (useRtHelpers && !RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + return; + } + var data = new Dictionary(); // References are on stack and won't be moved by GC.