Commit 8b9a4a8 1 parent efc7c4a commit 8b9a4a8 Copy full SHA for 8b9a4a8
File tree 3 files changed +25
-4
lines changed
3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk.Razor" >
1
+ <Project Sdk =" Microsoft.NET.Sdk.Razor" >
2
2
3
3
<PropertyGroup >
4
- <Version >9.1.2 </Version >
4
+ <Version >9.1.3-beta01 </Version >
5
5
</PropertyGroup >
6
6
7
7
<ItemGroup >
Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ public partial class DialogCloseButton : Button
30
30
/// </summary>
31
31
protected override void OnParametersSet ( )
32
32
{
33
- base . OnParametersSet ( ) ;
34
-
35
33
Icon ??= IconTheme . GetIconByKey ( ComponentIcons . DialogCloseButtonIcon ) ;
36
34
Text ??= Localizer [ nameof ( ModalDialog . CloseButtonText ) ] ;
35
+
36
+ base . OnParametersSet ( ) ;
37
37
}
38
38
39
39
/// <summary>
Original file line number Diff line number Diff line change
1
+ // Licensed to the .NET Foundation under one or more agreements.
2
+ // The .NET Foundation licenses this file to you under the Apache 2.0 License
3
+ // See the LICENSE file in the project root for more information.
4
+ // Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
5
+
6
+ namespace UnitTest . Components ;
7
+
8
+ public class DialogCloseButtonTest : BootstrapBlazorTestBase
9
+ {
10
+ [ Fact ]
11
+ public void Icon_Ok ( )
12
+ {
13
+ var cut = Context . RenderComponent < DialogCloseButton > ( ) ;
14
+ Assert . Equal ( "fa-solid fa-xmark" , cut . Instance . Icon ) ;
15
+ cut . Contains ( "fa-solid fa-xmark" ) ;
16
+
17
+ cut . SetParametersAndRender ( pb => pb . Add ( p => p . Icon , "test-icon" ) ) ;
18
+ Assert . Equal ( "test-icon" , cut . Instance . Icon ) ;
19
+ cut . Contains ( "test-icon" ) ;
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments