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()
40
40
[ Fact ]
41
41
public void ShouldFillGivenBlogPost ( )
42
42
{
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 ( ) ;
44
49
BlogPost blogPostFromComponent = null ;
45
50
var cut = RenderComponent < CreateNewBlogPost > (
46
51
p =>
@@ -55,6 +60,8 @@ public void ShouldFillGivenBlogPost()
55
60
blogPostFromComponent . Title . Should ( ) . Be ( "My new Title" ) ;
56
61
blogPostFromComponent . ShortDescription . Should ( ) . Be ( "Desc" ) ;
57
62
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" ) ;
58
65
}
59
66
60
67
[ Fact ]
You can’t perform that action at this time.
0 commit comments