PageRenderTime 11ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/NRefactory/ICSharpCode.NRefactory.VB.Tests/Parser/Expressions/ParenthesizedExpressionTest.cs

http://github.com/icsharpcode/ILSpy
C# | 26 lines | 22 code | 2 blank | 2 comment | 0 complexity | ce400fb146afa1eef2d6002f03b37da8 MD5 | raw file
 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)
 3
 4using System;
 5using System.IO;
 6using NUnit.Framework;
 7using ICSharpCode.NRefactory.VB.Parser;
 8using ICSharpCode.NRefactory.VB.Ast;
 9
10namespace ICSharpCode.NRefactory.VB.Tests.Ast
11{
12	[TestFixture]
13	public class ParenthesizedExpressionTests
14	{
15		#region VB.NET
16		[Test]
17		public void VBNetPrimitiveParenthesizedExpression()
18		{
19			ParenthesizedExpression p = ParseUtil.ParseExpression<ParenthesizedExpression>("((1))");
20			Assert.IsTrue(p.Expression is ParenthesizedExpression);
21			p = p.Expression as ParenthesizedExpression;;
22			Assert.IsTrue(p.Expression is PrimitiveExpression);
23		}
24		#endregion
25	}
26}