public void UninitializedFactoryAccessorThrows() { var accessor = new FactoryAccessor(); Assert.Throws<InvalidOperationException>(() => accessor.GetOrCreateFrom(ProxyModule.Default, pm => new object())); }
public static void Register() { _accessor = ProxyFooPolicies.RegisterFactory(Clear); }