[wasm] System.Data.Tests - add debug info, to help with the test failure (#56838)
authorAnkit Jain <radical@gmail.com>
Thu, 5 Aug 2021 00:52:42 +0000 (20:52 -0400)
committerGitHub <noreply@github.com>
Thu, 5 Aug 2021 00:52:42 +0000 (20:52 -0400)
commitf11c8ff5f5aa39c8d2440bd58e2928b89b44764d
treeb90b0df647135e85a3a60324bad2e65afda6f2f0
parent42066d69a0631ddf18cb25b6490e322ff3ca4415
[wasm] System.Data.Tests - add debug info, to help with the test failure (#56838)

`System.Data.Tests.AppDomainsAndFormatInfo.Bug55978` fails sometimes for
wasm:

```
Assert.Equal() Failure
Expected: 2
Actual:   3

Stack trace
   at System.Data.Tests.AppDomainsAndFormatInfo.Bug55978()
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
```

To debug the issue, this dumps some state when the test fails.

Issue: https://github.com/dotnet/runtime/issues/47968
src/libraries/System.Data.Common/tests/System/Data/DataTableTest.cs