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 7231421 commit 36b388eCopy full SHA for 36b388e
WebApiClientCore.Test/DataCollectionTest.cs
@@ -18,6 +18,12 @@ public void ReadWriteTest()
18
var state = datas.TryGetValue(typeof(DataCollectionTest), out var value);
19
Assert.True(state && value is DataCollectionTest);
20
21
+ state = datas.TryGetValue<DataCollectionTest>(typeof(DataCollectionTest), out var tValue);
22
+ Assert.True(state && tValue != null);
23
+
24
+ state = datas.TryGetValue<DataCollectionTest>(typeof(string), out _);
25
+ Assert.False(state);
26
27
datas.TryRemove("string", out _);
28
Assert.True(datas.Get<string>("string") == default);
29
}
0 commit comments