From 6fbf4b33663724287b1fd6e51149ec3b644951b9 Mon Sep 17 00:00:00 2001 From: sbohlen Date: Thu, 29 Jul 2010 16:09:12 +0000 Subject: [PATCH] SPRNET-1124 fixing broken build from inadvertent introduction of anonymous delegates...ANOTHER something obviously unsupported under .NET 1.1 --- .../Context/Support/XmlApplicationContentArgsTests.cs | 2 -- .../Objects/Factory/Config/DictionaryVariableSourceTests.cs | 4 ++++ .../Factory/Config/VariablePlaceholderConfigurerTests.cs | 5 +++++ .../Context/Support/WebApplicationContextArgsTests.cs | 2 -- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/test/Spring/Spring.Core.Tests/Context/Support/XmlApplicationContentArgsTests.cs b/test/Spring/Spring.Core.Tests/Context/Support/XmlApplicationContentArgsTests.cs index 92a5d515..2b474f73 100644 --- a/test/Spring/Spring.Core.Tests/Context/Support/XmlApplicationContentArgsTests.cs +++ b/test/Spring/Spring.Core.Tests/Context/Support/XmlApplicationContentArgsTests.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Text; using NUnit.Framework; namespace Spring.Context.Support diff --git a/test/Spring/Spring.Core.Tests/Objects/Factory/Config/DictionaryVariableSourceTests.cs b/test/Spring/Spring.Core.Tests/Objects/Factory/Config/DictionaryVariableSourceTests.cs index 49fabf26..9b20e0a9 100644 --- a/test/Spring/Spring.Core.Tests/Objects/Factory/Config/DictionaryVariableSourceTests.cs +++ b/test/Spring/Spring.Core.Tests/Objects/Factory/Config/DictionaryVariableSourceTests.cs @@ -50,11 +50,13 @@ namespace Spring.Objects.Factory.Config Assert.AreEqual("value2", dvs.ResolveVariable("key2")); } +#if NET_2_0 [Test] public void Iniitialize_WithStringArray_ThrowsException_WhenOddNumberOfStringsProvided() { Assert.Throws(() => new DictionaryVariableSource(new string[] { "key1", "value1", "key2", "value2", "orphanedKey1" })); } +#endif [Test] public void Initialize_WithCaseSensitiveFlag_AddsCaseSensitiveKeys() @@ -129,6 +131,7 @@ namespace Spring.Objects.Factory.Config } #endif +#if NET_2_0 [Test] public void Requesting_KeyNotFound_ThrowsException() { @@ -139,5 +142,6 @@ namespace Spring.Objects.Factory.Config Assert.Throws(() => dvs.ResolveVariable("not" + THE_KEY)); } +#endif } } diff --git a/test/Spring/Spring.Core.Tests/Objects/Factory/Config/VariablePlaceholderConfigurerTests.cs b/test/Spring/Spring.Core.Tests/Objects/Factory/Config/VariablePlaceholderConfigurerTests.cs index 5e15b3a0..039c1287 100644 --- a/test/Spring/Spring.Core.Tests/Objects/Factory/Config/VariablePlaceholderConfigurerTests.cs +++ b/test/Spring/Spring.Core.Tests/Objects/Factory/Config/VariablePlaceholderConfigurerTests.cs @@ -33,6 +33,8 @@ namespace Spring.Objects.Factory.Config [TestFixture] public class VariablePlaceholderConfigurerTests { + +#if NET_2_0 [Test] public void ThrowsOnMissingVariableSources() { @@ -41,7 +43,9 @@ namespace Spring.Objects.Factory.Config Assert.Throws(() => vphc.PostProcessObjectFactory(ac.ObjectFactory)); } +#endif +#if NET_2_0 [Test] public void ThrowsOnInvalidVariableSourcesElement() { @@ -51,6 +55,7 @@ namespace Spring.Objects.Factory.Config Assert.Throws(() => vphc.PostProcessObjectFactory(ac.ObjectFactory)); } +#endif [Test] public void SunnyDay() diff --git a/test/Spring/Spring.Web.Tests/Context/Support/WebApplicationContextArgsTests.cs b/test/Spring/Spring.Web.Tests/Context/Support/WebApplicationContextArgsTests.cs index 80a69a44..f9bc4925 100644 --- a/test/Spring/Spring.Web.Tests/Context/Support/WebApplicationContextArgsTests.cs +++ b/test/Spring/Spring.Web.Tests/Context/Support/WebApplicationContextArgsTests.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Text; using NUnit.Framework; namespace Spring.Context.Support