Handling Custom Assembly Attributes in Unit Tests After Migrating from .NET Framework 4.8 to .NET 8 - C#