-
-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
When testing the MaximumAllowedFileSize
for a component that includes an InputFile
component, I picked up that the BUnit.BUnitBrowserFile
implementation ignores the MaximumAllowedFileSize
argument, and allows any file size to be uploaded.
To replicate, you need to render a component containing an InputFile
component (or the InputFile
component directly), and set the MaximumAllowedFileSize
to something small, say 512 (bytes). Then generate a random file containing say 1024 bytes and upload it. The BUnitBrowserFile
implementation allows the file to be uploaded.
Expected behavior:
The BUnitBrowserFile
implementation throws an exception just like the built in Blazor InputFile
component does.
Version info:
- bUnit version: 1.29.5
- .NET Runtime and Blazor version: 8 with Blazor WASM
- OS type and version: Windows 11 23H2
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working