In bUnit 2.x, the ClickAsync method no longer requires a new MouseEventArgs(). However, the same change hasn't been made for InputAsync, you still need to do:
comp.InputAsync(new ChangeEventArgs { Value = currentText })
While with the non-async version, you can simply do:
I'd submit a PR, but it seems the fix requires changes to the generator, as it's not as straightforward as just adding an overload to InputEventDispatchExtensions.
This also prevents the analyzers to discover the "async" version if your method is Task.
In bUnit 2.x, the
ClickAsyncmethod no longer requires anew MouseEventArgs(). However, the same change hasn't been made forInputAsync, you still need to do:While with the non-async version, you can simply do:
I'd submit a PR, but it seems the fix requires changes to the generator, as it's not as straightforward as just adding an overload to
InputEventDispatchExtensions.This also prevents the analyzers to discover the "async" version if your method is
Task.