public void ManyResolverCannotClearOnceFrozen() { var resolver = new ManyResolver(); resolver.AddType <Resolved1>(); resolver.AddType <Resolved2>(); Resolution.Freeze(); resolver.Clear(); }
public void ManyResolverCannotClearOnceFrozen() { var resolver = new ManyResolver(new ActivatorServiceProvider(), Mock.Of <ILogger>()); resolver.AddType <Resolved1>(); resolver.AddType <Resolved2>(); Resolution.Freeze(); resolver.Clear(); }
public void ManyResolverCanClearBeforeFreeze() { var resolver = new ManyResolver(); resolver.AddType <Resolved1>(); resolver.AddType <Resolved2>(); resolver.Clear(); Assert.IsFalse(resolver.ContainsType <Resolved1>()); Assert.IsFalse(resolver.ContainsType <Resolved2>()); }
public void ManyResolverCanClearBeforeFreeze() { var resolver = new ManyResolver(new ActivatorServiceProvider(), Mock.Of <ILogger>()); resolver.AddType <Resolved1>(); resolver.AddType <Resolved2>(); resolver.Clear(); Assert.IsFalse(resolver.ContainsType <Resolved1>()); Assert.IsFalse(resolver.ContainsType <Resolved2>()); }