using Xunit; namespace Godot.SourceGenerators.Tests; public class ScriptPropertiesGeneratorTests { [Fact] public async void ExportedFields() { await CSharpSourceGeneratorVerifier.Verify( new string[] { "ExportedFields.cs", "MoreExportedFields.cs" }, new string[] { "ExportedFields_ScriptProperties.generated.cs" } ); } [Fact] public async void ExportedProperties() { await CSharpSourceGeneratorVerifier.Verify( "ExportedProperties.cs", "ExportedProperties_ScriptProperties.generated.cs" ); } [Fact] public async void OneWayPropertiesAllReadOnly() { await CSharpSourceGeneratorVerifier.Verify( "AllReadOnly.cs", "AllReadOnly_ScriptProperties.generated.cs" ); } [Fact] public async void OneWayPropertiesAllWriteOnly() { await CSharpSourceGeneratorVerifier.Verify( "AllWriteOnly.cs", "AllWriteOnly_ScriptProperties.generated.cs" ); } [Fact] public async void OneWayPropertiesMixedReadOnlyWriteOnly() { await CSharpSourceGeneratorVerifier.Verify( "MixedReadOnlyWriteOnly.cs", "MixedReadOnlyWriteOnly_ScriptProperties.generated.cs" ); } [Fact] public async void ScriptBoilerplate() { await CSharpSourceGeneratorVerifier.Verify( "ScriptBoilerplate.cs", "ScriptBoilerplate_ScriptProperties.generated.cs", "OuterClass.NestedClass_ScriptProperties.generated.cs" ); } }