Roadkill.Core.Mvc.ViewModels.PageViewModel.CommaDelimitedTags C# (CSharp) 메소드

CommaDelimitedTags() 공개 메소드

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

Usage Example

예제 #1
0
        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