This commit is contained in:
Shannon
2021-03-05 15:37:34 +11:00
parent 283130e349
commit 1094ae3723

View File

@@ -618,6 +618,7 @@ namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Scoping
IScope nested = scopeProvider.CreateScope();
Assert.IsNotNull(scopeProvider.AmbientScope);
var scopeRef = new HttpScopeReference(scopeProvider);
scopeRef.Register();
scopeRef.Dispose();
Assert.IsNull(scopeProvider.AmbientScope);
Assert.Throws<ObjectDisposedException>(() =>