using System.Collections.Generic;
using System.Linq;
+using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
Exception error = await Record.ExceptionAsync(() => send);
if (error != null)
{
- Assert.True(error is ObjectDisposedException || error is SocketException, error.ToString());
+ Assert.True(
+ error is ObjectDisposedException ||
+ error is SocketException ||
+ (error is SEHException && PlatformDetection.IsUap),
+ error.ToString());
}
}
}
Exception error = await Record.ExceptionAsync(() => send);
if (error != null)
{
- Assert.True(error is ObjectDisposedException || error is SocketException, error.ToString());
+ Assert.True(
+ error is ObjectDisposedException ||
+ error is SocketException ||
+ (error is SEHException && PlatformDetection.IsUap),
+ error.ToString());
}
}
}