public void Parsing_description_trims_whitespace() { var parser = new DescriptionParser(); var wrapDescriptor = new WrapDescriptor(); parser.Parse("description : \t test message \t", wrapDescriptor); wrapDescriptor.Description.ShouldBe("test message"); }
public void Parsing_whitespace_description_sets_Description_to_empty_string() { var parser = new DescriptionParser(); var wrapDescriptor = new WrapDescriptor(); parser.Parse("description : ", wrapDescriptor); wrapDescriptor.Description.ShouldBe(""); }
public void Parsing_description_sets_Description_property() { var parser = new DescriptionParser(); var wrapDescriptor = new WrapDescriptor(); parser.Parse("description: test message", wrapDescriptor); wrapDescriptor.Description.ShouldBe("test message"); }