public void EmptyClassDeclarationIsFormatted() { var cd = Apex.ClassDeclaration.Parse("class Test {}"); var result = VisualBasicCodeGenerator.Generate(cd); Assert.AreEqual( @"Class Test End Class ", result); }
public void NonEmptyClassDeclarationIsFormatted() { var cd = Apex.ClassDeclaration.Parse("class Program{void Main(string arg){}}"); var result = VisualBasicCodeGenerator.Generate(cd); Assert.AreEqual( @"Class Program Sub Main(arg As string) End Sub End Class ", result); }