We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0e59a4 commit 119a4ecCopy full SHA for 119a4ec
test/UnitTest/Components/MessageTest.cs
@@ -133,4 +133,19 @@ await cut.InvokeAsync(() => service.Show(new MessageOption()
133
ShowMode = MessageShowMode.Single
134
}, cut.Instance));
135
}
136
+
137
+ [Fact]
138
+ public async Task DisMissMode_Ok()
139
+ {
140
+ var service = Context.Services.GetRequiredService<MessageService>();
141
+ var cut = Context.RenderComponent<Message>();
142
+ await cut.InvokeAsync(() => service.Show(new MessageOption()
143
144
+ Content = "Test Content",
145
+ IsAutoHide = false,
146
+ ShowDismiss = true,
147
+ Icon = "fa-solid fa-font-awesome",
148
+ DismissMode = MessageDismissMode.DeleteSource
149
+ }, cut.Instance));
150
+ }
151
0 commit comments