diff --git a/test/Spring/Spring.Core.Tests/Context/Support/XmlApplicationContextTests.cs b/test/Spring/Spring.Core.Tests/Context/Support/XmlApplicationContextTests.cs
index 17934d2a..d58cf62f 100644
--- a/test/Spring/Spring.Core.Tests/Context/Support/XmlApplicationContextTests.cs
+++ b/test/Spring/Spring.Core.Tests/Context/Support/XmlApplicationContextTests.cs
@@ -42,17 +42,13 @@ namespace Spring.Context.Support
{
XmlApplicationContext ctx = new XmlApplicationContext(false, "assembly://Spring.Core.Tests/Spring.Context.Support/innerObjectsWithPostProcessor.xml");
ctx.GetObject("hasInnerObjects");
- } catch (System.NullReferenceException e)
- {
- Assert.Fail("Should not throw NullReferenceException",e);
- } catch (ObjectCreationException e)
+ Assert.Fail("should throw ObjectCreationException");
+ }
+ catch (ObjectCreationException e)
{
NoSuchObjectDefinitionException ex = e.InnerException as NoSuchObjectDefinitionException;
Assert.IsNotNull(ex);
//Pass
- } catch (Exception e)
- {
- Assert.Fail("Expect only ObjectCreationException to be thrown", e);
}
}
diff --git a/test/Spring/Spring.Core.Tests/Spring.Core.Tests.2003.csproj b/test/Spring/Spring.Core.Tests/Spring.Core.Tests.2003.csproj
index 30edb8a8..204c0622 100644
--- a/test/Spring/Spring.Core.Tests/Spring.Core.Tests.2003.csproj
+++ b/test/Spring/Spring.Core.Tests/Spring.Core.Tests.2003.csproj
@@ -362,6 +362,10 @@
RelPath = "Context\Support\import1.xml"
BuildAction = "EmbeddedResource"
/>
+