| 1 |
using System.Threading.Tasks; |
| 2 |
using Xunit; |
| 3 |
|
| 4 |
namespace Godot.SourceGenerators.Tests; |
| 5 |
|
| 6 |
public class ScriptPropertyDefValGeneratorTests |
| 7 |
{ |
| 8 |
[Fact] |
| 9 |
public async Task ExportedFields() |
| 10 |
{ |
| 11 |
await CSharpSourceGeneratorVerifier<ScriptPropertyDefValGenerator>.Verify( |
| 12 |
new string[] { "ExportedFields.cs", "MoreExportedFields.cs" }, |
| 13 |
new string[] { "ExportedFields_ScriptPropertyDefVal.generated.cs" } |
| 14 |
); |
| 15 |
} |
| 16 |
|
| 17 |
[Fact] |
| 18 |
public async Task ExportedProperties() |
| 19 |
{ |
| 20 |
await CSharpSourceGeneratorVerifier<ScriptPropertyDefValGenerator>.Verify( |
| 21 |
"ExportedProperties.cs", |
| 22 |
"ExportedProperties_ScriptPropertyDefVal.generated.cs" |
| 23 |
); |
| 24 |
} |
| 25 |
|
| 26 |
[Fact] |
| 27 |
public async Task ExportedProperties2() |
| 28 |
{ |
| 29 |
await CSharpSourceGeneratorVerifier<ScriptPropertyDefValGenerator>.Verify( |
| 30 |
"ExportedProperties2.cs", "ExportedProperties2_ScriptPropertyDefVal.generated.cs"); |
| 31 |
} |
| 32 |
|
| 33 |
[Fact] |
| 34 |
public async Task ExportedComplexStrings() |
| 35 |
{ |
| 36 |
await CSharpSourceGeneratorVerifier<ScriptPropertyDefValGenerator>.Verify( |
| 37 |
"ExportedComplexStrings.cs", |
| 38 |
"ExportedComplexStrings_ScriptPropertyDefVal.generated.cs" |
| 39 |
); |
| 40 |
} |
| 41 |
} |