public void TestNamespaces() { string[] expected = new string[] { "Option Strict Off", "Option Explicit On", "Option Infer On", "", "Imports System", "Imports System.CodeDom", "", "Namespace Test.Namespace", "End Namespace", "", "Namespace Another", "End Namespace" }; ProviderTestUtils.DoVisualBasicTest(expected, ProviderTestUtils.TestNamespacesCompileUnit(), addOptions: false); }
public void TestNamespaces() { string[] expected = new string[] { "namespace Test.Namespace", "{", " using System;", " using System.CodeDom;", "}", "", "namespace Another", "{", " using System;", "}" }; ProviderTestUtils.DoCSharpTest(expected, ProviderTestUtils.TestNamespacesCompileUnit(), new GeneratorOptions() { IndentString = " ", DoConsistencyChecks = false }); }