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 11using System . Linq ;
2+ using AngleSharp . Html . Dom ;
3+ using AngleSharpWrappers ;
24using Blazored . Toast . Services ;
35using Bunit ;
46using Bunit . TestDoubles ;
@@ -34,7 +36,7 @@ public void ShouldShareToLinkedIn()
3436
3537 var cut = RenderComponent < ShareBlogPost > ( ) ;
3638
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" ) ;
3941 }
4042}
You can’t perform that action at this time.
0 commit comments