PageRenderTime 21ms CodeModel.GetById 17ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/NRefactory/ICSharpCode.NRefactory.VB.Tests/Output/CodeDOM/CodeDOMParenthesizedExpressionTest.cs

http://github.com/icsharpcode/ILSpy
C# | 22 lines | 18 code | 2 blank | 2 comment | 0 complexity | 59ffa64d7c90c26e1ea38680fe2e4002 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.CodeDom;
 6using ICSharpCode.NRefactory.VB.Ast;
 7using ICSharpCode.NRefactory.VB.Visitors;
 8using NUnit.Framework;
 9
10namespace ICSharpCode.NRefactory.VB.Tests.Output.CodeDom.Tests
11{
12	[TestFixture]
13	public class CodeDOMParenthesizedExpressionTest
14	{
15		[Test]
16		public void TestParenthesizedExpression()
17		{
18			object output = new ParenthesizedExpression(new PrimitiveExpression(5, "5")).AcceptVisitor(new CodeDomVisitor(), null);
19			Assert.IsTrue(output is CodePrimitiveExpression);
20		}
21	}
22}