public void Adding_tags_should_add_to_existing_tags() { Test test = new Test("test"); List<string> tags = new List<string> { "tagged", "another" }; tags.ForEach(x => test.AddTags(x)); tags.ForEach(tag => test.GetTags().AllTags.Contains(tag)); }
public bool DoesTestMatch(Test test) { return test.GetTags().AllTags.Any(tag => AllTags.Any(tagToMatchOn => tag.Trim().ToUpper() == tagToMatchOn.Trim().ToUpper())); }