File tree Expand file tree Collapse file tree
CommandForgeGenerator.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22using CommandForgeGenerator . Generator . CodeGenerate ;
33using CommandForgeGenerator . Generator . Json ;
44using CommandForgeGenerator . Generator . Semantic ;
5+ using UnityEngine ;
56using Xunit ;
67
78namespace 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
You can’t perform that action at this time.
0 commit comments