Init
This commit is contained in:
21
Prefab.Tests/Web.Client/BunitSmokeTests.cs
Normal file
21
Prefab.Tests/Web.Client/BunitSmokeTests.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Bunit;
|
||||
using Shouldly;
|
||||
|
||||
namespace Prefab.Tests.Web.Client;
|
||||
|
||||
[Trait(TraitName.Category, TraitCategory.Unit)]
|
||||
public sealed class BunitSmokeTests : BunitContext
|
||||
{
|
||||
[Fact]
|
||||
public void RenderSimpleMarkup()
|
||||
{
|
||||
var cut = Render(builder =>
|
||||
{
|
||||
builder.OpenElement(0, "div");
|
||||
builder.AddAttribute(1, "class", "bunit-smoke");
|
||||
builder.CloseElement();
|
||||
});
|
||||
|
||||
cut.Find(".bunit-smoke").ShouldNotBeNull();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user