Skip to content

Commit aafddc6

Browse files
committed
Simplified Test
1 parent d13a308 commit aafddc6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/LinkDotNet.Blog.UnitTests/Web/Features/ShowBlogPost/ShowBlogPostPageTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ public void ShowNotShowTagsWhenNotSet()
112112
}
113113

114114
[Theory]
115-
[InlineData(true, 1)]
116-
[InlineData(false, 0)]
117-
public void ShowReadingIndicatorWhenEnabled(bool isEnabled, int count)
115+
[InlineData(true)]
116+
[InlineData(false)]
117+
public void ShowReadingIndicatorWhenEnabled(bool isEnabled)
118118
{
119119
var appConfiguration = new AppConfiguration
120120
{
@@ -131,7 +131,7 @@ public void ShowReadingIndicatorWhenEnabled(bool isEnabled, int count)
131131
var cut = RenderComponent<ShowBlogPostPage>(
132132
p => p.Add(s => s.BlogPostId, "1"));
133133

134-
cut.FindComponents<ReadingIndicator>().Count.Should().Be(count);
134+
cut.HasComponent<ReadingIndicator>().Should().Be(isEnabled);
135135
}
136136

137137
private void SetupMocks()

0 commit comments

Comments
 (0)