public void SetTagValueOrRemoveSetsCorrectStringValue() { var tags = new Dictionary<string, string>(); string testKey = "testKey"; string testValue = "testValue"; tags.SetTagValueOrRemove<string>(testKey, testValue); Assert.Equal(testValue, tags[testKey]); }
public void SetTagValueOrRemoveRemovesValue() { var tags = new Dictionary<string, string>(); string testKey = "testKey"; string testValue = "testValue"; tags[testKey] = testValue; tags.SetTagValueOrRemove<bool?>(testKey, null); Assert.False(tags.ContainsKey(testKey)); }