private static void WhenOverridden_ShouldReturnOverriddenImplementationType(Type interfaceType, Type overriddenImplementationType, Action <OverridableServicesContainer> getServiceToOverride) { var configuration = new DIConfiguration(); var mappedTypes = configuration .SetImplementationType(getServiceToOverride) .Build(); Assert.IsTrue(mappedTypes.ContainsKey(interfaceType)); Assert.AreEqual(overriddenImplementationType, mappedTypes[interfaceType]); }