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 SetTagValueOrRemoveSetsCorrectIntValue()
        {
            var tags = new Dictionary <string, string>();

            string testKey   = "testKey";
            string testValue = "5";

            tags.SetTagValueOrRemove <int?>(testKey, 5);

            Assert.AreEqual(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));
        }
        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));
        }