SPRNET-1124
fixing broken build from inadvertent introduction of anonymous delegates...ANOTHER something obviously unsupported under .NET 1.1
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Spring.Context.Support
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Spring.Context.Support
|
||||
|
||||
Reference in New Issue
Block a user