1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
7
using ICSharpCode.NRefactory.VB.Parser;
8
using ICSharpCode.NRefactory.VB.Ast;
10
namespace ICSharpCode.NRefactory.VB.Tests.Ast
13
public class UsingStatementTests
16
public void UsingStatement()
19
Using nf As New System.Drawing.Font(""Arial"", 12.0F, FontStyle.Bold)
21
c.Text = ""This is 12-point Arial bold""
23
UsingStatement usingStmt = ParseUtil.ParseStatement<UsingStatement>(usingText);
24
// TODO : Extend test.
27
public void UsingStatement2()
30
Using nf As Font = New Font()
33
UsingStatement usingStmt = ParseUtil.ParseStatement<UsingStatement>(usingText);
34
// TODO : Extend test.
37
public void UsingStatement3()
40
Using nf As New Font(), nf2 As New List(Of Font)(), nf3 = Nothing
43
UsingStatement usingStmt = ParseUtil.ParseStatement<UsingStatement>(usingText);
44
// TODO : Extend test.