|
|
|
@ -71,5 +71,23 @@ public class Form1 { |
|
|
|
Assert.AreEqual("Microsoft.VisualBasic.CompilerServices.DesignerGenerated", decl.Attributes[0].Attributes[0].Name); |
|
|
|
Assert.AreEqual("Microsoft.VisualBasic.CompilerServices.DesignerGenerated", decl.Attributes[0].Attributes[0].Name); |
|
|
|
Assert.AreEqual("someprefix.DesignerGenerated", decl.Attributes[1].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<AttributeSection>(program); |
|
|
|
|
|
|
|
Assert.AreEqual(new Location(1, 1), decl.StartLocation); |
|
|
|
|
|
|
|
Assert.AreEqual("assembly", decl.AttributeTarget); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
|
|
|
public void AssemblyAttributeVBNet() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
string program = @"<assembly: System.Attribute()>"; |
|
|
|
|
|
|
|
AttributeSection decl = ParseUtilVBNet.ParseGlobal<AttributeSection>(program); |
|
|
|
|
|
|
|
Assert.AreEqual(new Location(1, 1), decl.StartLocation); |
|
|
|
|
|
|
|
Assert.AreEqual("assembly", decl.AttributeTarget); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|