public void GetTagIntValueOrNullReturnsNull()
        {
            var tags = new Dictionary <string, string>();

            int?tagValue = tags.GetTagIntValueOrNull("testKey");

            Assert.Null(tagValue);
        }
Exemplo n.º 2
0
        public void GetTagIntValueOrNullReturnsCorrectIntValue()
        {
            var tags = new Dictionary<string, string>();

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

            tags[testKey] = testValue;

            int? tagValue = tags.GetTagIntValueOrNull(testKey);

            Assert.Equal(5, tagValue.Value);
        }
        public void GetTagIntValueOrNullReturnsCorrectIntValue()
        {
            var tags = new Dictionary <string, string>();

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

            tags[testKey] = testValue;

            int?tagValue = tags.GetTagIntValueOrNull(testKey);

            Assert.Equal(5, tagValue.Value);
        }
Exemplo n.º 4
0
        public void GetTagIntValueOrNullReturnsNull()
        {
            var tags = new Dictionary<string, string>();

            int? tagValue = tags.GetTagIntValueOrNull("testKey");

            Assert.Null(tagValue);
        }