File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
tests/LinkDotNet.Blog.UnitTests/Web/Shared Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
using System . Linq ;
2
+ using AngleSharp . Html . Dom ;
3
+ using AngleSharpWrappers ;
2
4
using Blazored . Toast . Services ;
3
5
using Bunit ;
4
6
using Bunit . TestDoubles ;
@@ -34,7 +36,7 @@ public void ShouldShareToLinkedIn()
34
36
35
37
var cut = RenderComponent < ShareBlogPost > ( ) ;
36
38
37
- var linkedInShare = cut . Find ( "#share-linkedin" ) . Attributes . Single ( s => s . Name == "href" ) . Value ;
38
- linkedInShare . Should ( ) . Be ( "https://www.linkedin.com/shareArticle?mini=true&url=http://localhost/blogPost/1" ) ;
39
+ var linkedInShare = ( IHtmlAnchorElement ) cut . Find ( "#share-linkedin" ) . Unwrap ( ) ;
40
+ linkedInShare . Href . Should ( ) . Be ( "https://www.linkedin.com/shareArticle?mini=true&url=http://localhost/blogPost/1" ) ;
39
41
}
40
42
}
You can’t perform that action at this time.
0 commit comments