From bd58a75fc027c9bb9d084b208d68c35edc8fe13e Mon Sep 17 00:00:00 2001 From: bbaia Date: Mon, 19 Apr 2010 15:29:50 +0000 Subject: [PATCH] Add 'side by side' support in Framework .NET 4.0 [SPRNET-1320] (Fix 1.1 build) --- .../Spring.Core.Tests/Util/ReflectionUtilsTests.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/Spring/Spring.Core.Tests/Util/ReflectionUtilsTests.cs b/test/Spring/Spring.Core.Tests/Util/ReflectionUtilsTests.cs index 7df0f53f..70e8cc5a 100644 --- a/test/Spring/Spring.Core.Tests/Util/ReflectionUtilsTests.cs +++ b/test/Spring/Spring.Core.Tests/Util/ReflectionUtilsTests.cs @@ -980,7 +980,12 @@ namespace Spring.Util { IList attrs = ReflectionUtils.GetCustomAttributes(typeof(ClassWithAttributes)); +#if NET_1_1 + // "GetCustomAttributes() does not return SecurityAttribute in .NET 1.x" + Assert.AreEqual(1, attrs.Count); +#else Assert.AreEqual(2, attrs.Count); +#endif } [Test] @@ -988,7 +993,12 @@ namespace Spring.Util { IList attrs = ReflectionUtils.GetCustomAttributes(typeof(ClassWithAttributes).GetMethod("MethodWithAttributes")); +#if NET_1_1 + // "GetCustomAttributes() does not return SecurityAttribute in .NET 1.x" + Assert.AreEqual(1, attrs.Count); +#else Assert.AreEqual(2, attrs.Count); +#endif } #endregion