public void ShouldHandleEmptyTaggedValues()
        {
            Assert.That(MultiPartTaggedValue.Split(null), Is.EqualTo(new string[0]));
            Assert.That(MultiPartTaggedValue.Split(""), Is.EqualTo(new string[0]));
            Assert.That(MultiPartTaggedValue.Merge(new string[0]), Is.EqualTo(""));
            Assert.That(MultiPartTaggedValue.Merge(null), Is.EqualTo(""));

            Assert.That(MultiPartTaggedValue.Split("value1|value2||value4"), Is.EqualTo(new[] { "value1", "value2", "", "value4" }));
            Assert.That(MultiPartTaggedValue.Merge(new[] { "value1", "value2", null, "value4" }), Is.EqualTo("value1|value2||value4"));
        }
 public void ShouldHandleMultipleValues()
 {
     Assert.That(MultiPartTaggedValue.Split("value1|value2|value3|value4"), Is.EqualTo(new[] { "value1", "value2", "value3", "value4" }));
     Assert.That(MultiPartTaggedValue.Merge(new[] { "value1", "value2", "value3", "value4" }), Is.EqualTo("value1|value2|value3|value4"));
 }
 public void ShouldHandleASingleValue()
 {
     Assert.That(MultiPartTaggedValue.Split("value1"), Is.EqualTo(new[] { "value1" }));
     Assert.That(MultiPartTaggedValue.Merge(new[] { "value1" }), Is.EqualTo("value1"));
 }
 public void ShouldHandleEmptyValues()
 {
     Assert.That(MultiPartTaggedValue.Split("|abc||"), Is.EqualTo(new[] { "", "abc", "", "" }));
     Assert.That(MultiPartTaggedValue.Merge(new[] { "", "abc", "", "" }), Is.EqualTo("|abc||"));
 }
 public IEnumerable <string> GetTaggedValues(TaggedValues key)
 {
     return(MultiPartTaggedValue.Split(GetTaggedValue(key)));
 }