We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9a41b7 commit eac254bCopy full SHA for eac254b
1 file changed
tests/ImageSharp.Web.Tests/Commands/CommandCollectionTests.cs
@@ -102,6 +102,24 @@ public void CanRemoveCommands()
102
Assert.Equal(kv2.Value, collection[kv2.Key]);
103
}
104
105
+ [Fact]
106
+ public void CanRemoveCommandsViaKey()
107
+ {
108
+ KeyValuePair<string, string> kv1 = new("a", "b");
109
+ KeyValuePair<string, string> kv2 = new("c", "d");
110
+ CommandCollection collection = new();
111
+
112
+ collection.Add(kv1);
113
+ collection.Add(kv2);
114
115
+ Assert.Equal(2, collection.Count);
116
117
+ collection.Remove(kv1.Key);
118
119
+ Assert.Single(collection);
120
+ Assert.Equal(kv2.Value, collection[kv2.Key]);
121
+ }
122
123
[Fact]
124
public void CanClearCommands()
125
{
0 commit comments