From 4f11ef161a077c91e501e4840fdd7c98916723c2 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Mon, 2 Sep 2024 20:50:09 +1000 Subject: [PATCH] version --- src/Directory.Build.props | 2 +- src/Tests/PolyfillTests_Dictionary.cs | 20 ++++++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 7cbc896e..860e65ec 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,7 +1,7 @@ - 6.4.1 + 6.5.0 1.0.0 Polyfill true diff --git a/src/Tests/PolyfillTests_Dictionary.cs b/src/Tests/PolyfillTests_Dictionary.cs index d8be046f..1a923a8a 100644 --- a/src/Tests/PolyfillTests_Dictionary.cs +++ b/src/Tests/PolyfillTests_Dictionary.cs @@ -5,7 +5,9 @@ public void IReadOnlyDictionaryAsReadOnly() { IDictionary dictionary = new Dictionary { - {"key", "value"} + { + "key", "value" + } }; var readOnly = dictionary.AsReadOnly(); @@ -34,7 +36,12 @@ public void Dictionary_TryAdd_ReturnsTrueOnSuccessfulAdd() [Test] public void Dictionary_TryAdd_ReturnsFalseIfElementAlreadyPresent() { - var dictionary = new Dictionary() { { "existingKey", "original value" } }; + var dictionary = new Dictionary + { + { + "existingKey", "original value" + } + }; var entryAdded = dictionary.TryAdd("existingKey", "new value"); @@ -45,7 +52,12 @@ public void Dictionary_TryAdd_ReturnsFalseIfElementAlreadyPresent() [Test] public void Dictionary_Remove() { - var dictionary = new Dictionary { { "key", "value" } }; + var dictionary = new Dictionary + { + { + "key", "value" + } + }; Assert.True(dictionary.Remove("key", out var value)); Assert.AreEqual("value", value); @@ -66,4 +78,4 @@ public void Dictionary_Remove_ThrowsOnNull() var dictionary = new Dictionary(); Assert.Throws(() => dictionary.Remove(null!, out _)); } -} +} \ No newline at end of file