public void GetTagIntValueOrNullReturnsNull() { var tags = new Dictionary <string, string>(); int?tagValue = tags.GetTagIntValueOrNull("testKey"); Assert.Null(tagValue); }
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); }
public void GetTagIntValueOrNullReturnsNull() { var tags = new Dictionary<string, string>(); int? tagValue = tags.GetTagIntValueOrNull("testKey"); Assert.Null(tagValue); }