public IEnumerable<KeyValuePair<string, string>> GetTraits(IAttributeInfo traitAttribute) { var ctorArgs = traitAttribute.GetConstructorArguments().ToList(); yield return new KeyValuePair<string, string>("Bug", ctorArgs[0].ToString()); }
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())); }
TestableXunitTestCase(IAssemblyInfo assembly, ITypeInfo type, IMethodInfo method, IAttributeInfo factAttribute, Action<IMessageSink> callback = null) : base(assembly, type, method, factAttribute) { this.callback = callback; }