public async Task vb_convert_attribute_Test() { var source = @" [Table] public class MyClas { [Key] public int Id {get;set;} public string Name {get;set;} }"; var vbCode = await VbCodeConvertor.CodeConvert(source); /* * <Table> * Public Class MyClas * <Key> * Public Property Id As Integer * Public Property Name As String * End Class */ Assert.That(vbCode, Does.Contain("<Table>")); Assert.That(vbCode, Does.Contain("Public Class MyClas")); Assert.That(vbCode, Does.Contain(" Public Property Name As String")); Assert.That(vbCode, Does.Contain("End Class")); }
public async Task vb_convert_Test() { var source = @"public class MyClas {}"; var vbCode = await VbCodeConvertor.CodeConvert(source); Assert.That(vbCode, Does.Contain("Public Class MyClas")); Assert.That(vbCode, Does.Contain("End Class")); }