1.10.14
Added
-
Added new test double
FakeWebAssemblyHostEnvironment
that implementsIWebAssemblyHostEnvironment
. By @KristofferStrube. -
Added
Bind
method to parameter builder that makes it easier to emulate the@bind-Value
syntax in C#-based tests.When writing tests in razor files, the
@bind-
directive can be directly applied like this:<MyComponent @bind-Value="myParam"></MyComponent>
The same expression in C# syntax is more verbose like this:
RenderComponent<MyComponent>(ps => ps .Add(c => c.Value, value) .Add(c => c.ValueChanged, newValue => value = newValue) .Add(c => c.ValueExpression, () => value));
With the new
Bind
method this can be done in one method:RenderComponent<MyComponent>(ps => ps .Bind(c => c.Value, value, newValue => value = newValue, () => value));
By @linkdotnet and @egil.
-
Added support for
NavigationLock
, which allows user code to intercept and prevent navigation. By @linkdotnet and @egil.
Fixed
JSInterop.VerifyInvoke
reported the wrong number of actual invocations of a given identifier. Reported by @otori. Fixed by @linkdotnet.