Roadkill.Core.Mvc.ViewModels.PageViewModel.CommaDelimitedTags C# (CSharp) Method

CommaDelimitedTags() public method

Joins the parsed tags with a comma.
public CommaDelimitedTags ( ) : string
return string
        public string CommaDelimitedTags()
        {
            return string.Join(",", _tags);
        }

Usage Example

        public void CommaDelimitedTags_Should_Return_Tags_In_Csv_Form()
        {
            // Arrange
            PageViewModel model = new PageViewModel();
            model.RawTags = "tag1, tag2, tag3";

            // Act
            string joinedTags = model.CommaDelimitedTags();

            // Assert
            Assert.That(joinedTags, Is.EqualTo("tag1,tag2,tag3"));
        }
All Usage Examples Of Roadkill.Core.Mvc.ViewModels.PageViewModel::CommaDelimitedTags