Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Proxy
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv4832
Modified Files:
AbstractProxyTypeBuilderTests.cs
Log Message:
Problems with Attributes in proxy generation [SPRNET-606]
(Proxy SecurityAttribute in .NET 2.0)
Index: AbstractProxyTypeBuilderTests.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Proxy/AbstractProxyTypeBuilderTests.cs,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** AbstractProxyTypeBuilderTests.cs 3 Dec 2007 23:31:38 -0000 1.19
--- AbstractProxyTypeBuilderTests.cs 4 Dec 2007 18:38:14 -0000 1.20
***************
*** 261,265 ****
// http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=94803
[Test]
! [Ignore("http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=94803")]
public void ProxySecurityAttribute()
{
--- 261,267 ----
// http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=94803
[Test]
! #if !NET_2_0
! [Ignore("GetCustomAttributes() does not return SecurityAttribute in .NET 1.x")]
! #endif
public void ProxySecurityAttribute()
{
***************
*** 275,279 ****
Assert.AreEqual(typeof(WebPermissionAttribute), attrs[1].GetType(), "Wrong System.Type of Attribute applied to the target type.");
! WebPermissionAttribute wpa = attrs[0] as WebPermissionAttribute;
Assert.AreEqual(SecurityAction.Deny, wpa.Action);
}
--- 277,281 ----
Assert.AreEqual(typeof(WebPermissionAttribute), attrs[1].GetType(), "Wrong System.Type of Attribute applied to the target type.");
! WebPermissionAttribute wpa = attrs[1] as WebPermissionAttribute;
Assert.AreEqual(SecurityAction.Deny, wpa.Action);
}
|