/NRefactory/ICSharpCode.NRefactory.VB.Tests/Parser/GlobalScope/NamespaceDeclarationTests.cs

http://github.com/icsharpcode/ILSpy · C# · 43 lines · 10 code · 2 blank · 31 comment · 0 complexity · 8dd6d110d27e25152ea3901dee1e8e33 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 ICSharpCode.NRefactory.VB.Ast;
  5. using NUnit.Framework;
  6. namespace ICSharpCode.NRefactory.VB.Tests.Ast
  7. {
  8. [TestFixture]
  9. public class NamespaceDeclarationTests
  10. {
  11. // #region VB.NET
  12. // [Test]
  13. // public void VBNetSimpleNamespaceTest()
  14. // {
  15. // string program = "Namespace TestNamespace" + Environment.NewLine +
  16. // "End Namespace" +Environment.NewLine;
  17. // NamespaceDeclaration ns = ParseUtil.ParseGlobal<NamespaceDeclaration>(program);
  18. // Assert.AreEqual("TestNamespace", ns.Name);
  19. // }
  20. //
  21. // [Test]
  22. // public void VBNetJuggedNamespaceTest()
  23. // {
  24. // string program = "Namespace N1 'TestNamespace\n" +
  25. // " Namespace N2 ' Declares a namespace named N2 within N1.\n" +
  26. // " End Namespace\n" +
  27. // "End Namespace\n";
  28. //
  29. // NamespaceDeclaration ns = ParseUtil.ParseGlobal<NamespaceDeclaration>(program);
  30. //
  31. // Assert.AreEqual("N1", ns.Name);
  32. //
  33. // Assert.IsTrue(ns.Children[0] is NamespaceDeclaration);
  34. //
  35. // ns = (NamespaceDeclaration)ns.Children[0];
  36. //
  37. // Assert.AreEqual("N2", ns.Name);
  38. // }
  39. // #endregion
  40. }
  41. }