ScriptPropertyDefValGeneratorTests.cs 960 B

123456789101112131415161718192021222324252627282930313233
  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. [Fact]
  22. public async void ExportedComplexStrings()
  23. {
  24. await CSharpSourceGeneratorVerifier<ScriptPropertyDefValGenerator>.Verify(
  25. "ExportedComplexStrings.cs",
  26. "ExportedComplexStrings_ScriptPropertyDefVal.generated.cs"
  27. );
  28. }
  29. }