Skip to content

Commit 9b5d100

Browse files
committed
EnvironmentContentTests.CheckForInvalidHttpClientHandlerType works
1 parent 06c5a6b commit 9b5d100

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,16 @@ public void CheckConcurrentGC ()
162162
}
163163

164164
[Test]
165-
public void CheckForInvalidHttpClientHandlerType ()
165+
public void CheckForInvalidHttpClientHandlerType ([Values] AndroidRuntime runtime)
166166
{
167+
const bool isRelease = true;
168+
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
169+
return;
170+
}
167171
var proj = new XamarinAndroidApplicationProject () {
168-
IsRelease = true,
172+
IsRelease = isRelease,
169173
};
174+
proj.SetRuntime (runtime);
170175
using (var b = CreateApkBuilder ()) {
171176
b.ThrowOnBuildFailure = false;
172177
proj.SetProperty ("AndroidHttpClientHandlerType", "Android.App.Application");

0 commit comments

Comments
 (0)