From 2e82144ec9db2a6356846f57c3e86800d059c4e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Kr=C3=BCger?= Date: Tue, 5 Apr 2011 10:53:25 +0200 Subject: [PATCH] * TypeDeclarationTests.cs: * PropertyDeclarationTests.cs: enabled property declaration tests. * ICSharpCode.NRefactory.Tests.csproj: --- .../CSharp/Parser/GeneralScope/TypeDeclarationTests.cs | 2 +- .../CSharp/Parser/TypeMembers/PropertyDeclarationTests.cs | 4 ++-- .../ICSharpCode.NRefactory.Tests.csproj | 8 +++++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ICSharpCode.NRefactory.Tests/CSharp/Parser/GeneralScope/TypeDeclarationTests.cs b/ICSharpCode.NRefactory.Tests/CSharp/Parser/GeneralScope/TypeDeclarationTests.cs index 6e486dcce4..eee0e90621 100644 --- a/ICSharpCode.NRefactory.Tests/CSharp/Parser/GeneralScope/TypeDeclarationTests.cs +++ b/ICSharpCode.NRefactory.Tests/CSharp/Parser/GeneralScope/TypeDeclarationTests.cs @@ -217,7 +217,7 @@ public abstract class MyClass : MyBase, Interface1, My.Test.Interface2 new TypeParameterDeclaration { Attributes = { new AttributeSection { - AttributeTarget = AttributeTarget.Unknown, + AttributeTarget = "partial", Attributes = { new Attribute { Type = new SimpleType("where") } } } }, diff --git a/ICSharpCode.NRefactory.Tests/CSharp/Parser/TypeMembers/PropertyDeclarationTests.cs b/ICSharpCode.NRefactory.Tests/CSharp/Parser/TypeMembers/PropertyDeclarationTests.cs index fba68f26ee..83611fc482 100644 --- a/ICSharpCode.NRefactory.Tests/CSharp/Parser/TypeMembers/PropertyDeclarationTests.cs +++ b/ICSharpCode.NRefactory.Tests/CSharp/Parser/TypeMembers/PropertyDeclarationTests.cs @@ -66,7 +66,7 @@ namespace ICSharpCode.NRefactory.CSharp.Parser.TypeMembers Assert.AreEqual(new AstLocation(4, code.IndexOf("}\n\t}") + 1 - line4Pos + 1), pd.Setter.Body.EndLocation); } - [Test, Ignore("explicit interface implementation not yet implemented")] + [Test] public void PropertyImplementingInterfaceTest() { PropertyDeclaration pd = ParseUtilCSharp.ParseTypeMember("int MyInterface.MyProperty { get {} } "); @@ -77,7 +77,7 @@ namespace ICSharpCode.NRefactory.CSharp.Parser.TypeMembers Assert.AreEqual("MyInterface", ((SimpleType)pd.PrivateImplementationType).Identifier); } - [Test, Ignore("explicit interface implementation not yet implemented")] + [Test] public void PropertyImplementingGenericInterfaceTest() { PropertyDeclaration pd = ParseUtilCSharp.ParseTypeMember("int MyInterface.MyProperty { get {} } "); diff --git a/ICSharpCode.NRefactory.Tests/ICSharpCode.NRefactory.Tests.csproj b/ICSharpCode.NRefactory.Tests/ICSharpCode.NRefactory.Tests.csproj index 2ad573734d..3c1e05fb0f 100644 --- a/ICSharpCode.NRefactory.Tests/ICSharpCode.NRefactory.Tests.csproj +++ b/ICSharpCode.NRefactory.Tests/ICSharpCode.NRefactory.Tests.csproj @@ -34,22 +34,24 @@ 4 true + ..\ICSharpCode.NRefactory\bin\Debug\ 4 true + ..\ICSharpCode.NRefactory\bin\Release\ - - ..\..\Mono.Cecil\Test\libs\nunit-2.4.8\nunit.framework.dll - + + ..\..\Mono.Cecil\Test\libs\nunit-2.4.8\nunit.framework.dll +