ContextRegistry.GetContext(string name) should throw an exception if no context has been registered under that name. [SPRNET-991]

This commit is contained in:
bbaia
2008-08-05 19:33:16 +00:00
parent b69f1331aa
commit 8bc27628a5

View File

@@ -54,6 +54,7 @@ namespace Spring.Context.Support
return ContextRegistry.GetContext(); // this must fail!
}
#if NET_2_0
[Test]
public void ThrowsInvalidOperationExceptionOnRecursiveCallsToGetContext()
{
@@ -75,6 +76,7 @@ namespace Spring.Context.Support
HookableContextHandler.SetSectionHandler(prevInst);
}
}
#endif
[Test]
public void RegisterRootContext()