From 199995bb6cbf85b80280b5b89b48a062e1ba6d75 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Tue, 20 Feb 2024 11:03:23 +1100 Subject: [PATCH] . --- src/Polyfill/{PolyString.cs => StringPolyfill.cs} | 2 +- src/Tests/PolyStringTests.cs | 12 ------------ src/Tests/StringPolyfillTests.cs | 12 ++++++++++++ 3 files changed, 13 insertions(+), 13 deletions(-) rename src/Polyfill/{PolyString.cs => StringPolyfill.cs} (97%) delete mode 100644 src/Tests/PolyStringTests.cs create mode 100644 src/Tests/StringPolyfillTests.cs diff --git a/src/Polyfill/PolyString.cs b/src/Polyfill/StringPolyfill.cs similarity index 97% rename from src/Polyfill/PolyString.cs rename to src/Polyfill/StringPolyfill.cs index 3585a729..c9aad1f7 100644 --- a/src/Polyfill/PolyString.cs +++ b/src/Polyfill/StringPolyfill.cs @@ -13,7 +13,7 @@ #if PolyPublic public #endif -static partial class PolyString +static partial class StringPolyfill { public static string Join(char separator, string[] values) { diff --git a/src/Tests/PolyStringTests.cs b/src/Tests/PolyStringTests.cs deleted file mode 100644 index 49f93a57..00000000 --- a/src/Tests/PolyStringTests.cs +++ /dev/null @@ -1,12 +0,0 @@ -// ReSharper disable PartialTypeWithSinglePart - -[TestFixture] -partial class PolyStringTest -{ - [Test] - public void Join() - { - Assert.AreEqual("bac", PolyString.Join('a', new []{"b","c"})); - Assert.AreEqual("bac", PolyString.Join('a', new object[]{"b","c"})); - } -} \ No newline at end of file diff --git a/src/Tests/StringPolyfillTests.cs b/src/Tests/StringPolyfillTests.cs new file mode 100644 index 00000000..8024a09f --- /dev/null +++ b/src/Tests/StringPolyfillTests.cs @@ -0,0 +1,12 @@ +// ReSharper disable PartialTypeWithSinglePart + +[TestFixture] +partial class StringPolyfillTest +{ + [Test] + public void Join() + { + Assert.AreEqual("bac", StringPolyfill.Join('a', new []{"b","c"})); + Assert.AreEqual("bac", StringPolyfill.Join('a', new object[]{"b","c"})); + } +} \ No newline at end of file