Skip to content

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

external/xamarin-android-tools

src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/PackagingTest.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,15 @@ public void CheckSignApk ([Values(true, false)] bool useApkSigner, [Values(true,
229229
using (var b = CreateApkBuilder (Path.Combine ("temp", TestContext.CurrentContext.Test.Name))) {
230230
b.Verbosity = Microsoft.Build.Framework.LoggerVerbosity.Diagnostic;
231231
Assert.IsTrue (b.Build (proj), "build failed");
232-
Assert.IsTrue (StringAssertEx.ContainsText (b.LastBuildOutput, " 0 Warning(s)"));
232+
Assert.IsTrue (StringAssertEx.ContainsText (b.LastBuildOutput, " 0 Warning(s)"),
233+
"First build should not contain warnings! Contains\n" +
234+
string.Join ("\n", b.LastBuildOutput.Where (line => line.Contains ("warning"))));
233235
proj.AndroidResources.First ().Timestamp = null;
234236
Assert.IsTrue (b.Build (proj), "Second build failed");
235-
Assert.IsTrue (StringAssertEx.ContainsText (b.LastBuildOutput, " 0 Warning(s)"));
237+
Assert.IsTrue (StringAssertEx.ContainsText (b.LastBuildOutput, " 0 Warning(s)"), "Second build should not contain warnings!");
238+
Assert.IsTrue (StringAssertEx.ContainsText (b.LastBuildOutput, " 0 Warning(s)"),
239+
"Second build should not contain warnings! Contains\n" +
240+
string.Join ("\n", b.LastBuildOutput.Where (line => line.Contains ("warning"))));
236241
}
237242
}
238243

0 commit comments

Comments
 (0)