We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ec637d commit 42753e8Copy full SHA for 42753e8
test/MsgPack.UnitTest/AssertEx.cs
@@ -33,7 +33,7 @@ internal static class AssertEx
33
public static TException ThrowsAsync<TException>( Func<Task> assertion )
34
where TException : Exception
35
{
36
-#if MSTEST
+#if MSTEST || XAMARIN
37
return Assert.Throws<TException>( () => assertion().GetAwaiter().GetResult() );
38
#else
39
return Assert.ThrowsAsync<TException>( () => assertion() );
0 commit comments