From f3bf1a51561ba53ca00925cf3e299646b083b2b2 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Thu, 9 Jan 2025 20:20:08 +1100 Subject: [PATCH] remove redundant conditional compilation in TypeCache (#4569) --- src/Adapter/MSTest.TestAdapter/Execution/TypeCache.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Adapter/MSTest.TestAdapter/Execution/TypeCache.cs b/src/Adapter/MSTest.TestAdapter/Execution/TypeCache.cs index 63997f4b6b..2b13c8384d 100644 --- a/src/Adapter/MSTest.TestAdapter/Execution/TypeCache.cs +++ b/src/Adapter/MSTest.TestAdapter/Execution/TypeCache.cs @@ -195,11 +195,7 @@ private static bool TryGetUnescapedManagedTypeName(TestMethod testMethod, [NotNu continue; } -#if NETCOREAPP || WINDOWS_UWP if (hierarchyPart.StartsWith('\'') && hierarchyPart.EndsWith('\'')) -#else - if (hierarchyPart.StartsWith("'", StringComparison.Ordinal) && hierarchyPart.EndsWith("'", StringComparison.Ordinal)) -#endif { unescapedTypeNameBuilder.Append(hierarchyPart, 1, hierarchyPart.Length - 2); }