Skip to content

Commit 585f515

Browse files
committed
LinkerTests.AndroidUseNegotiateAuthentication works
1 parent 161e275 commit 585f515

File tree

1 file changed

+7
-1
lines changed
  • src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,15 @@ void CheckAssembly (string assemblyPath, string projectDir)
579579
}
580580

581581
[Test]
582-
public void AndroidUseNegotiateAuthentication ([Values (true, false, null)] bool? useNegotiateAuthentication)
582+
public void AndroidUseNegotiateAuthentication ([Values (true, false, null)] bool? useNegotiateAuthentication, [Values] AndroidRuntime runtime)
583583
{
584+
bool isRelease = runtime == AndroidRuntime.NativeAOT;
585+
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
586+
return;
587+
}
588+
584589
var proj = new XamarinAndroidApplicationProject { IsRelease = true };
590+
proj.SetRuntime (runtime);
585591
proj.AddReferences ("System.Net.Http");
586592
proj.MainActivity = proj.DefaultMainActivity.Replace (
587593
"base.OnCreate (bundle);",

0 commit comments

Comments
 (0)