Add 'side by side' support in Framework .NET 4.0 [SPRNET-1320] (Fix 1.1 build)

This commit is contained in:
bbaia
2010-04-19 15:29:50 +00:00
parent 231e8b6b7e
commit bd58a75fc0

View File

@@ -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