Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Clay.Test/ConfigTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,21 +206,21 @@ public void Container_SetsLayout()
{
var layout = LayoutConfig.FillRow(gap: 8);
var decl = ElementDeclaration.Container(layout);
Assert.Equal(8, decl.Layout.ChildGap);
Assert.Equal(8, decl.Layout!.Value.ChildGap);
}

[Fact]
public void Box_SetsLayoutAndColor()
{
var decl = ElementDeclaration.Box(LayoutConfig.FillRow(), Color.Red);
Assert.Equal(Color.Red.R, decl.BackgroundColor.R);
Assert.Equal(Color.Red.R, decl.BackgroundColor!.Value.R);
}

[Fact]
public void RoundedBox_SetsCornerRadius()
{
var decl = ElementDeclaration.RoundedBox(LayoutConfig.FillRow(), Color.Red, 8f);
Assert.True(decl.CornerRadius.HasRadius);
Assert.True(decl.CornerRadius!.Value.HasRadius);
}
}

Expand Down
Loading
Loading