Never mind, fixed it. I was following a bad example from some website, I removed m_providers and added a parameter to the method, problem went away.
On Dec 13, 3:49 pm, Tomer <[email protected]> wrote: > Hi, > > We are in the middle of moving from MBUnit v2 to v3, and we have the > following scenario: > > [Factory("GetProviders")] > public IProvider m_providers; > > public static IEnumerable<IProvider> GetProviders() > { > yield return new ImplementedProvider(); > ... > > } > > [Test] > public void DoSomething() > { > ... > > } > > The problem is, that the method GetProviders is invoked BEFORE the > assembly fixture setup is called. > The code inside the GetProviders method is dependent on that setup. > > Are we doing something wrong here? This wasn't like that in MBUnit v2 > (of course a lot have changed...) > > Thanks!!! -- You received this message because you are subscribed to the Google Groups "MbUnit.User" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/mbunituser?hl=en.
