Skip to content

Commit 5091611

Browse files
committed
コード生成を排除
1 parent e642793 commit 5091611

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

CommandForgeGenerator.Tests/Test.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using CommandForgeGenerator.Generator.CodeGenerate;
33
using CommandForgeGenerator.Generator.Json;
44
using CommandForgeGenerator.Generator.Semantic;
5+
using UnityEngine;
56
using Xunit;
67

78
namespace CommandForgeGenerator.Tests;
@@ -62,13 +63,7 @@ public void GenerateTest()
6263
var commandsSchema = CommandSemanticsLoader.GetCommandSemantics(yaml);
6364
var codeFiles = CodeGenerator.Generate(commandsSchema);
6465

65-
// 生成されたコードをこのファイルと同じディレクトリに出力
66-
foreach (var codeFile in codeFiles)
67-
{
68-
var basePath = "/Users/katsumi.sato/RiderProjects/CommandForgeGenerator/CommandForgeGenerator.Tests";
69-
var filePath = Path.Combine(basePath, codeFile.FileName);
70-
File.WriteAllText(filePath, codeFile.Code);
71-
}
66+
Assert.Equal(16, codeFiles.Count);
7267

7368
#region Internal
7469

0 commit comments

Comments
 (0)