We are using bUnit in the Microsoft Fluent UI Blazor library. We are seeing testing errors with .NET 11 RC1 while testing our DataGrid that uses Virtualize.
This is the analysis from the Copilot Debugger:
Root cause is confirmed.
- The exception is not caused by your
itemsProvider lambda or RefreshItems binding in FluentDataGrid_ItemsProvider.
- It is thrown inside bUnit’s Virtualize JS interop handler during render initialization.
Evidence from the debugged sources:
- bUnit invokes
OnSpacerBeforeVisible with 3 arguments:
- VirtualizeJSRuntimeInvocationHandler.cs:44-45
- object[] parameters = new object[3] { 0f, 0f, 1E+09f };
- In .NET 11, ASP.NET Core’s VirtualizeJsInterop.OnSpacerBeforeVisible expects 4 parameters:
- VirtualizeJsInterop.cs:34
- OnSpacerBeforeVisible(float spacerSize, float spacerSeparation, float containerSize, int reason)
We are using bUnit in the Microsoft Fluent UI Blazor library. We are seeing testing errors with .NET 11 RC1 while testing our DataGrid that uses Virtualize.
This is the analysis from the Copilot Debugger:
Root cause is confirmed.
itemsProviderlambda orRefreshItemsbinding inFluentDataGrid_ItemsProvider.Evidence from the debugged sources:
OnSpacerBeforeVisiblewith 3 arguments: