Skip to content

Commit 42753e8

Browse files
committed
Fix Xamarin build error.
1 parent 9ec637d commit 42753e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/MsgPack.UnitTest/AssertEx.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ internal static class AssertEx
3333
public static TException ThrowsAsync<TException>( Func<Task> assertion )
3434
where TException : Exception
3535
{
36-
#if MSTEST
36+
#if MSTEST || XAMARIN
3737
return Assert.Throws<TException>( () => assertion().GetAwaiter().GetResult() );
3838
#else
3939
return Assert.ThrowsAsync<TException>( () => assertion() );

0 commit comments

Comments
 (0)