ScriptPropertyDefValGeneratorTests.cs 683 B

123456789101112131415161718192021222324
  1. using Xunit;
  2. namespace Godot.SourceGenerators.Tests;
  3. public class ScriptPropertyDefValGeneratorTests
  4. {
  5. [Fact]
  6. public async void ExportedFields()
  7. {
  8. await CSharpSourceGeneratorVerifier<ScriptPropertyDefValGenerator>.Verify(
  9. new string[] { "ExportedFields.cs", "MoreExportedFields.cs" },
  10. new string[] { "ExportedFields_ScriptPropertyDefVal.generated.cs" }
  11. );
  12. }
  13. [Fact]
  14. public async void ExportedProperties()
  15. {
  16. await CSharpSourceGeneratorVerifier<ScriptPropertyDefValGenerator>.Verify(
  17. "ExportedProperties.cs",
  18. "ExportedProperties_ScriptPropertyDefVal.generated.cs"
  19. );
  20. }
  21. }