public void WhenUsingMultipleLocatorStrategies_ThenTheyAreAllCalled() { var mocks = new MockLocatorBuilder(3); var locator = mocks.Locator; var registrations = locator.GetRegistrations(configSource).ToList(); //CollectionAssert.AreEqual(mocks.Providers, registrations); mocks.Verify(); }
public void WhenUsingOneLocatorStrategy_ThenThatStrategyIsCalled() { var mocks = new MockLocatorBuilder(1); var locator = mocks.Locator; var registrations = locator.GetRegistrations(configSource); Assert.AreEqual(0, registrations.Count()); mocks.Verify(); }