Skip to content

Commit ad3ce2e

Browse files
committed
test: 增加单元测试
1 parent 1de2207 commit ad3ce2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/UnitTest/Attributes/AutoGenerateClassTest.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ public void AutoGenerateColumn_Ok()
136136
attrInterface.Width = null;
137137
Assert.Equal(0, attr.Width);
138138

139+
attrInterface.IgnoreWhenExport = null;
140+
Assert.Null(attrInterface.IgnoreWhenExport);
141+
Assert.False(attr.IgnoreWhenExport);
142+
139143
attrInterface.Width = -10;
140144
Assert.Equal(-10, attr.Width);
141145

0 commit comments

Comments
 (0)