[wasm] fix test failing when trimming
``` [06:37:05] fail: [FAIL] System.Diagnostics.Tests.StopwatchTests.DebuggerAttributesValid [06:37:05] info: System.InvalidOperationException : Expected one DebuggerDisplayAttribute on System.Diagnostics.Stopwatch. [06:37:05] info: at System.Diagnostics.DebuggerAttributes.ValidateDebuggerDisplayReferences(Object obj) [06:37:05] info: at System.Diagnostics.Tests.StopwatchTests.DebuggerAttributesValid() [06:37:05] info: at System.Reflection.MethodInvoker.InterpretedInvoke(Object , Span`1 , BindingFlags ) ``` Fixed by preserving the `DebuggerDisplayAttribute`.
Showing
想要评论请 注册 或 登录