We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2338e22 commit f1fd38dCopy full SHA for f1fd38d
test/UnitTest/Components/WatermarkTest.cs
@@ -22,6 +22,17 @@ public void Watermark_Ok()
22
});
23
cut.MarkupMatches("<div id:ignore class=\"bb-watermark\"><span>Test</span></div>");
24
25
- cut.SetParametersAndRender();
+ var ex = Assert.ThrowsAny<InvalidOperationException>(() => cut.SetParametersAndRender(pb =>
26
+ {
27
+ pb.Add(a => a.IsPage, true);
28
+ }));
29
+ Assert.Equal($"IsPage is true, ChildContent cannot be set.", ex.Message);
30
+
31
+ cut.SetParametersAndRender(pb =>
32
33
34
+ pb.Add(a => a.ChildContent, (RenderFragment?)null);
35
+ });
36
+ cut.MarkupMatches("<div id:ignore class=\"bb-watermark is-page\"></div>");
37
}
38
0 commit comments