update unit test to nunit3 apis (#7543)
authorShane Neuville <shneuvil@microsoft.com>
Tue, 17 Sep 2019 01:26:30 +0000 (19:26 -0600)
committerGitHub <noreply@github.com>
Tue, 17 Sep 2019 01:26:30 +0000 (19:26 -0600)
Xamarin.Forms.Core.UnitTests/DeviceUnitTests.cs

index 809fe7a..570669b 100644 (file)
@@ -113,7 +113,7 @@ namespace Xamarin.Forms.Core.UnitTests
                        Assert.False(invoked, "Action invoked early.");
 
                        async Task MethodThatThrows() => await task;
-                       Assert.Throws<ApplicationException>(async () => await MethodThatThrows());
+                       Assert.ThrowsAsync<ApplicationException>(MethodThatThrows);
                        Assert.True(invoked, "Action not invoked.");
                }