diff --git a/Tests/Editor/UnityLocalisationTests.cs b/Tests/Editor/UnityLocalisationTests.cs index c2246fa1..4285b16f 100644 --- a/Tests/Editor/UnityLocalisationTests.cs +++ b/Tests/Editor/UnityLocalisationTests.cs @@ -119,10 +119,6 @@ private static void CreateAndConfigureProject(string[] lines, string yarnName, s // flagging it as needing save and reimport EditorUtility.SetDirty(importer); importer.SaveAndReimport(); - - // now open and read out the contents of the json - var json = File.ReadAllText($"{AssetPath}/{projectName}.yarnproject"); - Debug.LogWarning(json); } public void Cleanup() @@ -156,6 +152,12 @@ public void UnityLocalisation_ImplicitStringsImportedCorrectly() { var table = ValidateSetup(); + // temp logging + var json = File.ReadAllText($"{AssetPath}/ProjectA.yarnproject"); + Debug.LogWarning(json); + json = File.ReadAllText($"{AssetPath}/ProjectB.yarnproject"); + Debug.LogWarning(json); + // and it needs to have the same number of lines as our projects have Assert.AreEqual(table.Count(), lines.Count()); @@ -175,6 +177,12 @@ public void UnityLocalisation_FormerImplictLinesAreRemovedFromStringTables() // now we tag the yarn YarnProjectUtility.AddLineTagsToFilesInYarnProject(projectA); + // temp logging + var json = File.ReadAllText($"{AssetPath}/ProjectA.yarnproject"); + Debug.LogWarning(json); + json = File.ReadAllText($"{AssetPath}/ProjectB.yarnproject"); + Debug.LogWarning(json); + // and now we make sure it correctly added and removed the lines // the number of lines shouldn't have changed