Skip to content

Virtualize test error with .NET 11 RC1 #1915

Description

@vnbaaij

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions