public TagsAttribute(params string[] tags) { if (tags == null) { throw new ArgumentNullException(nameof(tags)); } if (tags.Length == 0) { throw SpecFailure.EmptyCollection(nameof(tags)); } _tags = new List <TestTag>( tags.Select(s => TestTag.Parse(s)) ); }
IEnumerable <TestTag> ITestTagProvider.GetTags(TestContext testContext) { return(new [] { TestTag.Platform(Platform), }); }
public TagAttribute(string tag) { Tag = TestTag.Parse(tag); }