From 19a53c7f2c4bcf7fb9ed836bbe5b402539b4d307 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Fri, 1 Dec 2006 16:55:09 +0000 Subject: [PATCH] Add test for SD2-1110 (currently broken, let's see if the build server catches unit test errors) git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2101 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../GlobalScope/AttributeSectionTests.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Libraries/NRefactory/Test/Parser/GlobalScope/AttributeSectionTests.cs b/src/Libraries/NRefactory/Test/Parser/GlobalScope/AttributeSectionTests.cs index 4c3fc14117..c9b8358765 100644 --- a/src/Libraries/NRefactory/Test/Parser/GlobalScope/AttributeSectionTests.cs +++ b/src/Libraries/NRefactory/Test/Parser/GlobalScope/AttributeSectionTests.cs @@ -71,5 +71,23 @@ public class Form1 { Assert.AreEqual("Microsoft.VisualBasic.CompilerServices.DesignerGenerated", decl.Attributes[0].Attributes[0].Name); Assert.AreEqual("someprefix.DesignerGenerated", decl.Attributes[1].Attributes[0].Name); } + + [Test] + public void AssemblyAttributeCSharp() + { + string program = @"[assembly: System.Attribute()]"; + AttributeSection decl = ParseUtilCSharp.ParseGlobal(program); + Assert.AreEqual(new Location(1, 1), decl.StartLocation); + Assert.AreEqual("assembly", decl.AttributeTarget); + } + + [Test] + public void AssemblyAttributeVBNet() + { + string program = @""; + AttributeSection decl = ParseUtilVBNet.ParseGlobal(program); + Assert.AreEqual(new Location(1, 1), decl.StartLocation); + Assert.AreEqual("assembly", decl.AttributeTarget); + } } }