SPRNET-1124

fixing broken build from inadvertent introduction of anonymous delegates...ANOTHER something obviously unsupported under .NET 1.1
This commit is contained in:
sbohlen
2010-07-29 16:09:12 +00:00
parent 75a5e158e4
commit 6fbf4b3366
4 changed files with 9 additions and 4 deletions

View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
namespace Spring.Context.Support

View File

@@ -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<ArgumentOutOfRangeException>(() => 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<ArgumentException>(() => dvs.ResolveVariable("not" + THE_KEY));
}
#endif
}
}

View File

@@ -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<ArgumentException>(() => vphc.PostProcessObjectFactory(ac.ObjectFactory));
}
#endif
#if NET_2_0
[Test]
public void ThrowsOnInvalidVariableSourcesElement()
{
@@ -51,6 +55,7 @@ namespace Spring.Objects.Factory.Config
Assert.Throws<ArgumentException>(() => vphc.PostProcessObjectFactory(ac.ObjectFactory));
}
#endif
[Test]
public void SunnyDay()

View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
namespace Spring.Context.Support