2025-10-11 21:47:24 +01:00
|
|
|
using System.Threading.Tasks;
|
2025-08-08 11:10:54 +08:00
|
|
|
using Xunit;
|
|
|
|
|
|
|
|
|
|
namespace Godot.SourceGenerators.Tests;
|
|
|
|
|
|
|
|
|
|
public class KeywordClassAndNamespaceTest
|
|
|
|
|
{
|
|
|
|
|
[Fact]
|
2025-10-11 21:47:24 +01:00
|
|
|
public async Task GenerateScriptMethodsTest()
|
2025-08-08 11:10:54 +08:00
|
|
|
{
|
|
|
|
|
await CSharpSourceGeneratorVerifier<ScriptMethodsGenerator>.Verify(
|
|
|
|
|
"KeywordClassNameAndNamespace.cs",
|
|
|
|
|
"namespace.class_ScriptMethods.generated.cs"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|