Skip to content

Commit 3e56a5b

Browse files
committed
Revert "test: 增加单元测试"
This reverts commit 1716203.
1 parent 1716203 commit 3e56a5b

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

test/UnitTest/Services/MaskServiceTest.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// See the LICENSE file in the project root for more information.
44
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
55

6-
using Microsoft.AspNetCore.Components.Rendering;
7-
86
namespace UnitTest.Services;
97

108
/// <summary>
@@ -94,10 +92,6 @@ public async Task Show_Component()
9492
});
9593
var button = cut.Find("button");
9694
await cut.InvokeAsync(() => button.Click());
97-
98-
// close
99-
var close = cut.Find(".btn-mask-close");
100-
await cut.InvokeAsync(() => close.Click());
10195
}
10296

10397
[Fact]
@@ -120,11 +114,6 @@ public async Task Show_Type()
120114

121115
class MockComponent : ComponentBase
122116
{
123-
protected override void BuildRenderTree(RenderTreeBuilder builder)
124-
{
125-
builder.OpenComponent<DialogCloseButton>(0);
126-
builder.AddAttribute(1, "class", "btn-mask-close");
127-
builder.CloseComponent();
128-
}
117+
129118
}
130119
}

0 commit comments

Comments
 (0)