Skip to content

Commit

Permalink
use EnumPolyfill.GetNames correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Dec 20, 2024
1 parent 378afeb commit de7c016
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/Adapter/MSTest.TestAdapter/MSTestSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -503,11 +503,7 @@ private static MSTestSettings ToSettings(XmlReader reader, IMessageLogger? logge
CultureInfo.CurrentCulture,
Resource.InvalidClassCleanupLifecycleValue,
value,
#if NET
string.Join(", ", Enum.GetNames<ClassCleanupBehavior>())));
#else
string.Join(", ", EnumPolyfill.GetNames<ClassCleanupBehavior>())));
#endif

break;
}
Expand Down Expand Up @@ -834,11 +830,7 @@ private static void SetParallelSettings(XmlReader reader, MSTestSettings setting
CultureInfo.CurrentCulture,
Resource.InvalidParallelScopeValue,
value,
#if NET
string.Join(", ", Enum.GetNames<ExecutionScope>())));
#else
string.Join(", ", EnumPolyfill.GetNames<ExecutionScope>())));
#endif

break;
}
Expand Down Expand Up @@ -1001,11 +993,7 @@ internal static void SetSettingsFromConfig(IConfiguration configuration, IMessag
CultureInfo.CurrentCulture,
Resource.InvalidClassCleanupLifecycleValue,
classCleanupLifecycle,
#if NET
string.Join(", ", Enum.GetNames<ClassCleanupBehavior>())));
#else
string.Join(", ", EnumPolyfill.GetNames<ClassCleanupBehavior>())));
#endif
}
}

Expand Down Expand Up @@ -1040,11 +1028,7 @@ internal static void SetSettingsFromConfig(IConfiguration configuration, IMessag
CultureInfo.CurrentCulture,
Resource.InvalidParallelScopeValue,
value,
#if NET
string.Join(", ", Enum.GetNames<ExecutionScope>())));
#else
string.Join(", ", EnumPolyfill.GetNames<ExecutionScope>())));
#endif
}
}

Expand Down

0 comments on commit de7c016

Please sign in to comment.