public void SetStringValueOrRemoveDoesNotThrowsWhenValueIsNull() { var tags = new Dictionary <string, string>(); //Assert.DoesNotThrow tags.SetStringValueOrRemove("testKey", null); }
public void SetStringValueOrRemoveSetsCorrectStringValue() { var tags = new Dictionary <string, string>(); string testKey = "testKey"; string testValue = "testValue"; tags.SetStringValueOrRemove(testKey, testValue); Assert.Equal(testValue, tags[testKey]); }
public void SetStringValueOrRemoveDoesNotThrowsWhenValueIsNull() { var tags = new Dictionary<string, string>(); Assert.DoesNotThrow(() => tags.SetStringValueOrRemove("testKey", null)); }
public void SetStringValueOrRemoveSetsCorrectStringValue() { var tags = new Dictionary<string, string>(); string testKey = "testKey"; string testValue = "testValue"; tags.SetStringValueOrRemove(testKey, testValue); Assert.Equal(testValue, tags[testKey]); }