Skip to content

Commit a0af4e1

Browse files
committed
Updated CHANGELOG.md for 1.10.14 release
1 parent 39ae49e commit a0af4e1

File tree

1 file changed

+35
-31
lines changed

1 file changed

+35
-31
lines changed

CHANGELOG.md

Lines changed: 35 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,43 @@ All notable changes to **bUnit** will be documented in this file. The project ad
66

77
## [Unreleased]
88

9+
## [1.10.14] - 2022-09-16
10+
911
### Added
1012

11-
- Added new test double `FakeWebAssemblyHostEnvironment` that implements `IWebAssemblyHostEnvironment`. By [@KristofferStrube](https://github.com/KristofferStrube).
12-
13-
- Added `Bind` method to parameter builder that makes it easier to emulate the `@bind-Value` syntax in C#-based tests.
14-
15-
When writing tests in razor files, the `@bind-` directive can be directly applied like this:
16-
17-
```razor
18-
<MyComponent @bind-Value="myParam"></MyComponent>
19-
```
20-
21-
The same expression in C# syntax is more verbose like this:
22-
23-
```csharp
24-
RenderComponent<MyComponent>(ps => ps
25-
.Add(c => c.Value, value)
26-
.Add(c => c.ValueChanged, newValue => value = newValue)
27-
.Add(c => c.ValueExpression, () => value));
28-
```
29-
30-
With the new `Bind` method this can be done in one method:
31-
32-
```csharp
33-
RenderComponent<MyComponent>(ps => ps
34-
.Bind(c => c.Value, value, newValue => value = newValue, () => value));
35-
```
36-
37-
By [@linkdotnet](https://github.com/linkdotnet) and [@egil](https://github.com/egil).
38-
39-
- Added support for `NavigationLock`, which allows user code to intercept and prevent navigation. By [@linkdotnet](https://github.com/linkdotnet) and [@egil](https://github.com/egil).
13+
- Added new test double `FakeWebAssemblyHostEnvironment` that implements `IWebAssemblyHostEnvironment`. By [@KristofferStrube](https://github.com/KristofferStrube).
14+
15+
- Added `Bind` method to parameter builder that makes it easier to emulate the `@bind-Value` syntax in C#-based tests.
16+
17+
When writing tests in razor files, the `@bind-` directive can be directly applied like this:
18+
19+
```razor
20+
<MyComponent @bind-Value="myParam"></MyComponent>
21+
```
22+
23+
The same expression in C# syntax is more verbose like this:
24+
25+
```csharp
26+
RenderComponent<MyComponent>(ps => ps
27+
.Add(c => c.Value, value)
28+
.Add(c => c.ValueChanged, newValue => value = newValue)
29+
.Add(c => c.ValueExpression, () => value));
30+
```
31+
32+
With the new `Bind` method this can be done in one method:
33+
34+
```csharp
35+
RenderComponent<MyComponent>(ps => ps
36+
.Bind(c => c.Value, value, newValue => value = newValue, () => value));
37+
```
38+
39+
By [@linkdotnet](https://github.com/linkdotnet) and [@egil](https://github.com/egil).
40+
41+
- Added support for `NavigationLock`, which allows user code to intercept and prevent navigation. By [@linkdotnet](https://github.com/linkdotnet) and [@egil](https://github.com/egil).
4042
4143
### Fixed
4244
43-
- `JSInterop.VerifyInvoke` reported the wrong number of actual invocations of a given identifier. Reported by [@otori](https://github.com/otori). Fixed by [@linkdotnet](https://github.com/linkdotnet).
45+
- `JSInterop.VerifyInvoke` reported the wrong number of actual invocations of a given identifier. Reported by [@otori](https://github.com/otori). Fixed by [@linkdotnet](https://github.com/linkdotnet).
4446
4547
## [1.9.8] - 2022-06-07
4648
@@ -1210,7 +1212,9 @@ The latest version of the library is availble on NuGet:
12101212
- **Wrong casing on keyboard event dispatch helpers.**
12111213
The helper methods for the keyboard events was not probably cased, so that has been updated. E.g. from `Keypress(...)` to `KeyPress(...)`.
12121214
1213-
[Unreleased]: https://github.com/bUnit-dev/bUnit/compare/v1.9.8...HEAD
1215+
[Unreleased]: https://github.com/bUnit-dev/bUnit/compare/v1.10.14...HEAD
1216+
1217+
[1.10.14]: https://github.com/bUnit-dev/bUnit/compare/v1.9.8...v1.10.14
12141218
12151219
[1.9.8]: https://github.com/bUnit-dev/bUnit/compare/v1.8.15...v1.9.8
12161220

0 commit comments

Comments
 (0)