Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Sep 2, 2024
1 parent a63f838 commit 4f11ef1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Version>6.4.1</Version>
<Version>6.5.0</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<PackageTags>Polyfill</PackageTags>
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
Expand Down
20 changes: 16 additions & 4 deletions src/Tests/PolyfillTests_Dictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ public void IReadOnlyDictionaryAsReadOnly()
{
IDictionary<string, string> dictionary = new Dictionary<string, string>
{
{"key", "value"}
{
"key", "value"
}
};

var readOnly = dictionary.AsReadOnly();
Expand Down Expand Up @@ -34,7 +36,12 @@ public void Dictionary_TryAdd_ReturnsTrueOnSuccessfulAdd()
[Test]
public void Dictionary_TryAdd_ReturnsFalseIfElementAlreadyPresent()
{
var dictionary = new Dictionary<string, string>() { { "existingKey", "original value" } };
var dictionary = new Dictionary<string, string>
{
{
"existingKey", "original value"
}
};

var entryAdded = dictionary.TryAdd("existingKey", "new value");

Expand All @@ -45,7 +52,12 @@ public void Dictionary_TryAdd_ReturnsFalseIfElementAlreadyPresent()
[Test]
public void Dictionary_Remove()
{
var dictionary = new Dictionary<string, string?> { { "key", "value" } };
var dictionary = new Dictionary<string, string?>
{
{
"key", "value"
}
};

Assert.True(dictionary.Remove("key", out var value));
Assert.AreEqual("value", value);
Expand All @@ -66,4 +78,4 @@ public void Dictionary_Remove_ThrowsOnNull()
var dictionary = new Dictionary<string, string>();
Assert.Throws<ArgumentNullException>(() => dictionary.Remove(null!, out _));
}
}
}

0 comments on commit 4f11ef1

Please sign in to comment.