From 8bc27628a598ec80f66124701368f05a5543b007 Mon Sep 17 00:00:00 2001 From: bbaia Date: Tue, 5 Aug 2008 19:33:16 +0000 Subject: [PATCH] ContextRegistry.GetContext(string name) should throw an exception if no context has been registered under that name. [SPRNET-991] --- .../Spring.Core.Tests/Context/Support/ContextRegistryTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/Spring/Spring.Core.Tests/Context/Support/ContextRegistryTests.cs b/test/Spring/Spring.Core.Tests/Context/Support/ContextRegistryTests.cs index af19dbaa..94de9e46 100644 --- a/test/Spring/Spring.Core.Tests/Context/Support/ContextRegistryTests.cs +++ b/test/Spring/Spring.Core.Tests/Context/Support/ContextRegistryTests.cs @@ -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()