Exemple #1
0
        public void Throw_Disposed()
        {
            var provider = new DependencyCollection()
                           .AddSingleton <JConverter>()
                           .BuildProvider();

            provider.Dispose();

            Assert.Throws <ObjectDisposedException>(() => provider.GetRequiredService <JConverter>());
        }