From 0b912ba83c697be20cfc4ac853eb0fb32d0fa558 Mon Sep 17 00:00:00 2001 From: Valentin Date: Sun, 12 Jan 2025 16:18:23 +0100 Subject: [PATCH] Fix ambiguous implementation --- .../Polyfills/StringExtensionMethods.cs | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 Tests/Testably.Abstractions.Testing.Tests/Polyfills/StringExtensionMethods.cs diff --git a/Tests/Testably.Abstractions.Testing.Tests/Polyfills/StringExtensionMethods.cs b/Tests/Testably.Abstractions.Testing.Tests/Polyfills/StringExtensionMethods.cs deleted file mode 100644 index 0d5a1e8a1..000000000 --- a/Tests/Testably.Abstractions.Testing.Tests/Polyfills/StringExtensionMethods.cs +++ /dev/null @@ -1,29 +0,0 @@ -#if NET48 -using System.Diagnostics.CodeAnalysis; - -// ReSharper disable once CheckNamespace -namespace Testably.Abstractions.Polyfills; - -/// -/// Provides extension methods to simplify writing platform independent tests. -/// -[ExcludeFromCodeCoverage] -internal static class StringExtensionMethods -{ - /// - /// Reports the zero-based index of the first occurrence of the specified string in the current - /// object. A parameter specifies the type of search to use for the specified string. - /// - /// - /// The index position of the parameter if that string is found, or -1 if it is not. - /// If is , the return value is 0. - /// - internal static int IndexOf( - this string @this, - char value, - StringComparison comparison) - { - return @this.IndexOf($"{value}", comparison); - } -} -#endif