Skip to content

Commit af170c9

Browse files
committed
test: 增加单元测试
1 parent e6e935f commit af170c9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/UnitTest/Components/TableTest.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3264,6 +3264,15 @@ public void ShowFilterHeader_Ok(bool showCheckboxText)
32643264
});
32653265
});
32663266
});
3267+
3268+
cut.Contains("width: 36px;");
3269+
3270+
var table = cut.FindComponent<Table<Foo>>();
3271+
table.SetParametersAndRender(pb =>
3272+
{
3273+
pb.Add(a => a.TableSize, TableSize.Compact);
3274+
});
3275+
cut.Contains("width: 28px;");
32673276
}
32683277

32693278
[Theory]

0 commit comments

Comments
 (0)