From 89fd66391922738c8d2ad0177f19df0a69f02fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Standa=20Luke=C5=A1?= Date: Thu, 31 Oct 2024 21:13:02 +0100 Subject: [PATCH] Fix unit test build on .NET Framework --- .../Runtime/JavascriptCompilation/JsParametrizedCodeTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tests/Runtime/JavascriptCompilation/JsParametrizedCodeTests.cs b/src/Tests/Runtime/JavascriptCompilation/JsParametrizedCodeTests.cs index 0b9dc9ac3..89df492ea 100644 --- a/src/Tests/Runtime/JavascriptCompilation/JsParametrizedCodeTests.cs +++ b/src/Tests/Runtime/JavascriptCompilation/JsParametrizedCodeTests.cs @@ -110,6 +110,7 @@ public void SymbolicParameters_AddDefault() Assert.AreEqual("a+x", assigned.ToString(o => o == symbolE ? CodeParameterAssignment.FromIdentifier("x") : default)); } +#if DotNetCore [TestMethod] public void SymbolicParameters_NoAssignmentNoAllocation() { @@ -121,5 +122,6 @@ public void SymbolicParameters_NoAssignmentNoAllocation() pcode.AssignParameters(noAssignment); Assert.AreEqual(0, GC.GetAllocatedBytesForCurrentThread() - b); } +#endif } }