File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
LinkDotNet.Blog.UnitTests/Web/Shared/Admin Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,12 @@ public void ShouldCreateNewBlogPostWhenValidDataGiven()
4040 [ Fact ]
4141 public void ShouldFillGivenBlogPost ( )
4242 {
43- var blogPost = new BlogPostBuilder ( ) . WithTitle ( "Title" ) . WithShortDescription ( "Desc" ) . WithContent ( "Content" ) . Build ( ) ;
43+ var blogPost = new BlogPostBuilder ( )
44+ . WithTitle ( "Title" )
45+ . WithShortDescription ( "Desc" )
46+ . WithContent ( "Content" )
47+ . WithTags ( "tag1" , "tag2" )
48+ . Build ( ) ;
4449 BlogPost blogPostFromComponent = null ;
4550 var cut = RenderComponent < CreateNewBlogPost > (
4651 p =>
@@ -55,6 +60,8 @@ public void ShouldFillGivenBlogPost()
5560 blogPostFromComponent . Title . Should ( ) . Be ( "My new Title" ) ;
5661 blogPostFromComponent . ShortDescription . Should ( ) . Be ( "Desc" ) ;
5762 blogPostFromComponent . Content . Should ( ) . Be ( "Content" ) ;
63+ blogPostFromComponent . Tags . Select ( t => t . Content ) . Should ( ) . Contain ( "tag1" ) ;
64+ blogPostFromComponent . Tags . Select ( t => t . Content ) . Should ( ) . Contain ( "tag2" ) ;
5865 }
5966
6067 [ Fact ]
You can’t perform that action at this time.
0 commit comments