diff --git a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/AotTests.cs b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/AotTests.cs index d69f145b3a8..c75e55c0bf2 100644 --- a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/AotTests.cs +++ b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/AotTests.cs @@ -113,19 +113,16 @@ public void BuildBasicApplicationReleaseProfiledAotWithoutDefaultProfile () } [Test] - [TestCase ("テスト", true, false)] - [TestCase ("随机生成器", true, false)] - [TestCase ("テスト", true, true)] - [TestCase ("随机生成器", true, true)] - [TestCase ("テスト", false, false)] - [TestCase ("随机生成器", false, false)] - [TestCase ("テスト", false, true)] - [TestCase ("随机生成器", false, true)] - [TestCase ("中国", false, false)] - [TestCase ("中国", false, true)] - [TestCase ("中国", true, true)] - [TestCase ("中国", true, false)] - public void BuildAotApplicationWithSpecialCharactersInProject (string testName, bool isRelease, bool aot) + [TestCase ("テスト", false, false, true)] + [TestCase ("テスト", true, true, false)] + [TestCase ("テスト", true, false, true)] + [TestCase ("随机生成器", false, false, true)] + [TestCase ("随机生成器", true, true, false)] + [TestCase ("随机生成器", true, false, true)] + [TestCase ("中国", false, false, true)] + [TestCase ("中国", true, true, false)] + [TestCase ("中国", true, false, true)] + public void BuildAotApplicationWithSpecialCharactersInProject (string testName, bool isRelease, bool aot, bool expectedResult) { var rootPath = Path.Combine (Root, "temp", TestName); var proj = new XamarinAndroidApplicationProject () { @@ -135,7 +132,7 @@ public void BuildAotApplicationWithSpecialCharactersInProject (string testName, }; proj.SetAndroidSupportedAbis ("armeabi-v7a", "arm64-v8a", "x86", "x86_64"); using (var builder = CreateApkBuilder (Path.Combine (rootPath, proj.ProjectName))){ - Assert.IsTrue (builder.Build (proj), "Build should have succeeded."); + Assert.AreEqual (expectedResult, builder.Build (proj), "Build should have succeeded."); } }