Exemple #1
0
 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),
     });
 }
Exemple #3
0
 public TagAttribute(string tag)
 {
     Tag = TestTag.Parse(tag);
 }