Skip to content

Commit 3939e7e

Browse files
committed
refactor: 精简代码
1 parent 250ace0 commit 3939e7e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

test/UnitTest/Extensions/QueryPageOptionsExtensionsTest.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,12 @@ public void ToFilter_ToLambda()
127127
[Fact]
128128
public void Set_Ok()
129129
{
130-
var filter = new SearchFilterAction("", "", FilterAction.Equal);
131-
filter.Name = "test";
132-
filter.Value = "test";
133-
filter.Action = FilterAction.GreaterThan;
130+
var filter = new SearchFilterAction("", "", FilterAction.Equal)
131+
{
132+
Name = "test",
133+
Value = "test",
134+
Action = FilterAction.GreaterThan
135+
};
134136
Assert.Equal("test", filter.Name);
135137
Assert.Equal("test", filter.Value);
136138
Assert.Equal(FilterAction.GreaterThan, filter.Action);

0 commit comments

Comments
 (0)