We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b37589a commit 051bc08Copy full SHA for 051bc08
1 file changed
src/Magicodes.ExporterAndImporter.Tests/ExcelImporter_Tests.cs
@@ -1050,8 +1050,10 @@ public async Task Issue225_Test()
1050
if (import.RowErrors.Count > 0) _testOutputHelper.WriteLine(JsonConvert.SerializeObject(import.RowErrors));
1051
1052
import.RowErrors.Count.ShouldBe(2);
1053
- import.RowErrors[0].FieldErrors.Any(p => p.Value.Contains("不存在模板下拉选项中")).ShouldBeTrue();
1054
- // RowErrors[1] 的错误消息可能不同,只验证存在错误
+ // Linux 下错误消息为英文,Windows 下为中文
+ import.RowErrors[0].FieldErrors.Any(p =>
1055
+ p.Value.Contains("不存在模板下拉选项中") ||
1056
+ p.Value.Contains("There is no template drop-down option")).ShouldBeTrue();
1057
import.RowErrors[1].FieldErrors.Count.ShouldBeGreaterThan(0);
1058
1059
import.HasError.ShouldBeTrue();
0 commit comments