/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. using System;
  4. using System.CodeDom;
  5. using ICSharpCode.NRefactory.VB.Ast;
  6. using ICSharpCode.NRefactory.VB.Visitors;
  7. using NUnit.Framework;
  8. namespace ICSharpCode.NRefactory.VB.Tests.Output.CodeDom.Tests
  9. {
  10. [TestFixture]
  11. public class CodeDOMParenthesizedExpressionTest
  12. {
  13. [Test]
  14. public void TestParenthesizedExpression()
  15. {
  16. object output = new ParenthesizedExpression(new PrimitiveExpression(5, "5")).AcceptVisitor(new CodeDomVisitor(), null);
  17. Assert.IsTrue(output is CodePrimitiveExpression);
  18. }
  19. }
  20. }