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

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