提交 9c6f2295 编写于 作者: C Cyrus Najmabadi

Test added.

上级 265fb187
...@@ -225,6 +225,19 @@ public void AddEmptySyntaxList() ...@@ -225,6 +225,19 @@ public void AddEmptySyntaxList()
newMethodDeclaration.AddAttributeLists(attributes); newMethodDeclaration.AddAttributeLists(attributes);
} }
[Fact]
public void AddNamespaceAttributeLists()
{
var declaration = SyntaxFactory.NamespaceDeclaration(SyntaxFactory.ParseName("M"));
declaration = declaration.AddAttributeLists(new[]
{
SyntaxFactory.AttributeList(SyntaxFactory.SingletonSeparatedList(
SyntaxFactory.Attribute(SyntaxFactory.ParseName("Attr")))),
});
Assert.True(declaration.AttributeLists.Count == 1);
}
[Fact] [Fact]
public void Extensions() public void Extensions()
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册