Exemplo n.º 1
0
 [Fact] public void ToPropertyShouldReturnAProperty()
 {
     Assert.Equal(@"film_id: number", TypeScript.ToProperty("film_id", "int", false));
 }
Exemplo n.º 2
0
 [Fact] public void ToPropertyShouldBeQuotedForKeysBeginningWithANumber()
 {
     Assert.Equal(@"""5films""?: string", TypeScript.ToProperty("5films", "varchar", true));
 }
Exemplo n.º 3
0
 [Fact] public void ToPropertyShouldNotBeQuotedForAlphanumericKeys()
 {
     Assert.Equal(@"film5?: string", TypeScript.ToProperty("film5", "nvarchar", true));
 }