public IEnumerable<KeyValuePair<string, string>> GetTraits(IAttributeInfo traitAttribute)
 {
     var ctorArgs = traitAttribute.GetConstructorArguments().ToList();
     yield return new KeyValuePair<string, string>("Bug", ctorArgs[0].ToString());
 }
Exemple #2
0
 public static TestableXunitTestCase Create(IAssemblyInfo assembly, ITypeInfo type, IMethodInfo method, IAttributeInfo factAttribute)
 {
     return new TestableXunitTestCase(assembly, type, method, factAttribute);
 }
            public IEnumerable <KeyValuePair <string, string> > GetTraits(IAttributeInfo traitAttribute)
            {
                var ctorArgs = traitAttribute.GetConstructorArguments().ToList();

                yield return(new KeyValuePair <string, string>("Bug", ctorArgs[0].ToString()));
            }
Exemple #4
0
 TestableXunitTestCase(IAssemblyInfo assembly, ITypeInfo type, IMethodInfo method, IAttributeInfo factAttribute, Action<IMessageSink> callback = null)
     : base(assembly, type, method, factAttribute)
 {
     this.callback = callback;
 }