From a092ba6e9b0c24b997c9a333c87d797fd4bac6fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Breu=C3=9F?= Date: Sat, 30 May 2026 23:34:44 +0200 Subject: [PATCH] feat: exclude netstandard and WindowsBase assembly prefixes by default Add "netstandard" and "WindowsBase" to the default ExcludedAssemblyPrefixes so that these framework assemblies are ignored during reflection scanning. --- .../Customization/AwexpectCustomization.Reflection.cs | 4 ++++ .../Customization/CustomizeReflectionTests.cs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Source/aweXpect.Core/Customization/AwexpectCustomization.Reflection.cs b/Source/aweXpect.Core/Customization/AwexpectCustomization.Reflection.cs index feb6bafde..5a9fc2be1 100644 --- a/Source/aweXpect.Core/Customization/AwexpectCustomization.Reflection.cs +++ b/Source/aweXpect.Core/Customization/AwexpectCustomization.Reflection.cs @@ -61,6 +61,8 @@ public record ReflectionCustomizationValue /// - mscorlib
/// - System
/// - Microsoft
+ /// - netstandard
+ /// - WindowsBase
/// - JetBrains
/// - xunit
/// - Castle
@@ -71,6 +73,8 @@ public record ReflectionCustomizationValue "mscorlib", "System", "Microsoft", + "netstandard", + "WindowsBase", "JetBrains", "xunit", "Castle", diff --git a/Tests/aweXpect.Core.Tests/Customization/CustomizeReflectionTests.cs b/Tests/aweXpect.Core.Tests/Customization/CustomizeReflectionTests.cs index 407cd6776..827e34aef 100644 --- a/Tests/aweXpect.Core.Tests/Customization/CustomizeReflectionTests.cs +++ b/Tests/aweXpect.Core.Tests/Customization/CustomizeReflectionTests.cs @@ -34,6 +34,8 @@ await That(reflection.ExcludedAssemblyPrefixes.Get()).IsEqualTo([ "mscorlib", "System", "Microsoft", + "netstandard", + "WindowsBase", "JetBrains", "xunit", "Castle",