public void Throw_Disposed() { var provider = new DependencyCollection() .AddSingleton <JConverter>() .BuildProvider(); provider.Dispose(); Assert.Throws <ObjectDisposedException>(() => provider.GetRequiredService <JConverter>()); }
public void Throw_Disposed() { var provider = new DependencyCollection() .AddSingleton <JConverter>() .BuildProvider(); provider.Dispose(); Assert.Throws <ObjectDisposedException>(() => provider.GetRequiredService <JConverter>()); }