Skip to content

Commit

Permalink
Update tests to handle expected failures
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Sep 4, 2023
1 parent 89f5e63 commit 105ea01
Showing 1 changed file with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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.");
}
}

Expand Down

0 comments on commit 105ea01

Please sign in to comment.