Skip to content

Commit e61cbed

Browse files
authored
chore: use abstract method in AssertionsBase (#3199)
1 parent b04835b commit e61cbed

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Playwright/Core/AssertionsBase.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
namespace Microsoft.Playwright.Core;
4040

41-
internal class AssertionsBase
41+
internal abstract class AssertionsBase
4242
{
4343
private static float _defaultTimeout = 5_000;
4444

@@ -49,10 +49,7 @@ public AssertionsBase(bool isNot)
4949

5050
protected bool IsNot { get; }
5151

52-
protected virtual Task<FrameExpectResult> CallExpectAsync(string expression, FrameExpectOptions expectOptions, string title)
53-
{
54-
throw new NotImplementedException("CallExpectAsync must be implemented in a derived class.");
55-
}
52+
protected abstract Task<FrameExpectResult> CallExpectAsync(string expression, FrameExpectOptions expectOptions, string title);
5653

5754
protected async Task ExpectImplAsync(string expression, ExpectedTextValue textValue, object expected, string message, string title, FrameExpectOptions options)
5855
{

0 commit comments

Comments
 (0)