art: 资源迁移
This commit is contained in:
@@ -87,7 +87,7 @@ namespace AibisDream.EditorTests.Huoshan
|
||||
|
||||
LocalizationSettings.SelectedLocale = previous;
|
||||
Assert.That(chineseTask.Result, Is.EqualTo("我就是个笑话"));
|
||||
Assert.That(englishTask.Result, Is.Empty);
|
||||
Assert.That(englishTask.Result, Is.EqualTo("I am nothing but a joke"));
|
||||
}
|
||||
|
||||
[UnityTest]
|
||||
@@ -415,7 +415,7 @@ namespace AibisDream.EditorTests.Huoshan
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Params_ContainsLocalizedExpressPoolForEveryLocale()
|
||||
public void Params_ContainsEnglishWordPoolAndPendingPoolsForOtherLocales()
|
||||
{
|
||||
StringTableCollection collection =
|
||||
LocalizationEditorSettings.GetStringTableCollection(ConstRef.ParamsTable);
|
||||
@@ -441,7 +441,18 @@ namespace AibisDream.EditorTests.Huoshan
|
||||
chinese.GetEntry(key).LocalizedValue),
|
||||
Is.Not.Empty);
|
||||
|
||||
foreach (string localeCode in localeCodes.Skip(1))
|
||||
StringTable english =
|
||||
collection.GetTable(new LocaleIdentifier("en")) as StringTable;
|
||||
Assert.That(
|
||||
LanguageYarnCommand.TryParseExpressionPool(
|
||||
english.GetEntry(key).LocalizedValue,
|
||||
ExpressionParticleUnitMode.Word,
|
||||
out List<string> englishPool),
|
||||
Is.True);
|
||||
Assert.That(englishPool, Does.Contain("truth"));
|
||||
Assert.That(englishPool, Does.Contain("believe"));
|
||||
|
||||
foreach (string localeCode in localeCodes.Skip(2))
|
||||
{
|
||||
StringTable table =
|
||||
collection.GetTable(new LocaleIdentifier(localeCode)) as StringTable;
|
||||
|
||||
Reference in New Issue
Block a user