From 5372875438073a00ba38fde9cb501bacf3b37379 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 8 Jul 2025 23:16:57 +0200 Subject: [PATCH] chore: use abstract method in AssertionsBase --- src/Playwright/Core/AssertionsBase.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Playwright/Core/AssertionsBase.cs b/src/Playwright/Core/AssertionsBase.cs index 26c35a977..fdb6bea58 100644 --- a/src/Playwright/Core/AssertionsBase.cs +++ b/src/Playwright/Core/AssertionsBase.cs @@ -38,7 +38,7 @@ namespace Microsoft.Playwright.Core; -internal class AssertionsBase +internal abstract class AssertionsBase { private static float _defaultTimeout = 5_000; @@ -49,10 +49,7 @@ public AssertionsBase(bool isNot) protected bool IsNot { get; } - protected virtual Task CallExpectAsync(string expression, FrameExpectOptions expectOptions, string title) - { - throw new NotImplementedException("CallExpectAsync must be implemented in a derived class."); - } + protected abstract Task CallExpectAsync(string expression, FrameExpectOptions expectOptions, string title); protected async Task ExpectImplAsync(string expression, ExpectedTextValue textValue, object expected, string message, string title, FrameExpectOptions options) {