Migration from MBUnit v2 to v3 and the ProviderFactory is gone
问题 In MBUnit v2 I did this: public class ConnectionStringFactory { [Factory] public string ConnectionString { get { return ConfigurationManager.ConnectionStrings["MyConnection"].ConnectionString; } } } [ProviderFactory(typeof(ConnectionStringFactory),typeof(string))] public class CustomerTests { public void GetCustomerTest(string connectionString) { } public void GetCustomersTest(string connectionString) { } } I had to create ONE Factory class returning me a connectionString which gets injected