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