}
[Fact] // Base case
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveFrom not supported on Apple platforms")]
public void Socket_ReceiveFromDnsEndPoint_Throws()
{
// "The parameter remoteEP must not be of type DnsEndPoint."
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveFrom not supported on Apple platforms")]
public void ReceiveFromV4BoundToSpecificV4_Success()
{
ReceiveFrom_Helper(IPAddress.Loopback, IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveFrom not supported on Apple platforms")]
public void ReceiveFromV4BoundToAnyV4_Success()
{
ReceiveFrom_Helper(IPAddress.Any, IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveFrom not supported on Apple platforms")]
public void ReceiveFromV6BoundToSpecificV6_Success()
{
ReceiveFrom_Helper(IPAddress.IPv6Loopback, IPAddress.IPv6Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveFrom not supported on Apple platforms")]
public void ReceiveFromV6BoundToAnyV6_Success()
{
ReceiveFrom_Helper(IPAddress.IPv6Any, IPAddress.IPv6Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveFrom not supported on Apple platforms")]
public void ReceiveFromV4BoundToAnyV6_Success()
{
ReceiveFrom_Helper(IPAddress.IPv6Any, IPAddress.Loopback);
#endregion ReceiveFrom Sync
[Fact]
- [PlatformSpecific(TestPlatforms.OSX)] // ReceiveFrom not supported on OSX
+ [PlatformSpecific(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS)] // ReceiveFrom not supported on Apple platforms
public void ReceiveFrom_NotSupported()
{
using (Socket sock = new Socket(SocketType.Dgram, ProtocolType.Udp))
}
[Fact] // Base case
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveFrom not supported on Apple platforms")]
// "The parameter remoteEP must not be of type DnsEndPoint."
public void Socket_BeginReceiveFromDnsEndPoint_Throws()
{
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveFrom not supported on Apple platforms")]
public void BeginReceiveFromV4BoundToSpecificV4_Success()
{
BeginReceiveFrom_Helper(IPAddress.Loopback, IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveFrom not supported on Apple platforms")]
public void BeginReceiveFromV4BoundToAnyV4_Success()
{
BeginReceiveFrom_Helper(IPAddress.Any, IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveFrom not supported on Apple platforms")]
public void BeginReceiveFromV6BoundToSpecificV6_Success()
{
BeginReceiveFrom_Helper(IPAddress.IPv6Loopback, IPAddress.IPv6Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveFrom not supported on Apple platforms")]
public void BeginReceiveFromV6BoundToAnyV6_Success()
{
BeginReceiveFrom_Helper(IPAddress.IPv6Any, IPAddress.IPv6Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveFrom not supported on Apple platforms")]
public void BeginReceiveFromV4BoundToAnyV6_Success()
{
BeginReceiveFrom_Helper(IPAddress.IPv6Any, IPAddress.Loopback);
}
[Fact] // Base case
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveFromAsync not supported on Apple platforms")]
// "The parameter remoteEP must not be of type DnsEndPoint."
public void Socket_ReceiveFromAsyncDnsEndPoint_Throws()
{
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveFromAsync not supported on Apple platforms")]
public void ReceiveFromAsyncV4BoundToSpecificV4_Success()
{
ReceiveFromAsync_Helper(IPAddress.Loopback, IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveFromAsync not supported on Apple platforms")]
public void ReceiveFromAsyncV4BoundToAnyV4_Success()
{
ReceiveFromAsync_Helper(IPAddress.Any, IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveFromAsync not supported on Apple platforms")]
public void ReceiveFromAsyncV6BoundToSpecificV6_Success()
{
ReceiveFromAsync_Helper(IPAddress.IPv6Loopback, IPAddress.IPv6Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveFromAsync not supported on Apple platforms")]
public void ReceiveFromAsyncV6BoundToAnyV6_Success()
{
ReceiveFromAsync_Helper(IPAddress.IPv6Any, IPAddress.IPv6Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveFromAsync not supported on Apple platforms")]
public void ReceiveFromAsyncV6BoundToSpecificV4_NotReceived()
{
Assert.Throws<TimeoutException>(() =>
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveFromAsync not supported on Apple platforms")]
public void ReceiveFromAsyncV4BoundToSpecificV6_NotReceived()
{
Assert.Throws<TimeoutException>(() =>
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveFromAsync not supported on Apple platforms")]
public void ReceiveFromAsyncV6BoundToAnyV4_NotReceived()
{
Assert.Throws<TimeoutException>(() =>
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveFromAsync not supported on Apple platforms")]
public void ReceiveFromAsyncV4BoundToAnyV6_Success()
{
ReceiveFromAsync_Helper(IPAddress.IPv6Any, IPAddress.Loopback);
#endregion ReceiveFrom Async/Event
[Fact]
- [PlatformSpecific(TestPlatforms.OSX)] // ReceiveFromAsync not supported on OSX
+ [PlatformSpecific(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS)] // ReceiveFromAsync not supported on Apple platforms
public void ReceiveFromAsync_NotSupported()
{
using (Socket sock = new Socket(SocketType.Dgram, ProtocolType.Udp))
public class DualModeConnectionlessReceiveMessageFrom : DualModeBase
{
[Fact]
- [PlatformSpecific(TestPlatforms.OSX)] // ReceiveMessageFrom not supported on OSX
+ [PlatformSpecific(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS)] // ReceiveMessageFrom not supported on Apple platforms
public void ReceiveMessageFrom_NotSupported()
{
using (Socket sock = new Socket(SocketType.Dgram, ProtocolType.Udp))
}
[Fact]
- [PlatformSpecific(TestPlatforms.OSX)] // ReceiveMessageFromAsync not supported on OSX
+ [PlatformSpecific(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS)] // ReceiveMessageFromAsync not supported on Apple platforms
public void ReceiveMessageFromAsync_NotSupported()
{
using (Socket sock = new Socket(SocketType.Dgram, ProtocolType.Udp))
}
[Fact] // Base case
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFrom not supported on Apple platforms")]
// "The parameter remoteEP must not be of type DnsEndPoint."
public void Socket_ReceiveMessageFromDnsEndPoint_Throws()
{
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFrom not supported on Apple platforms")]
public void ReceiveMessageFromV4BoundToSpecificMappedV4_Success()
{
ReceiveMessageFrom_Helper(IPAddress.Loopback.MapToIPv6(), IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFrom not supported on Apple platforms")]
public void ReceiveMessageFromV4BoundToAnyMappedV4_Success()
{
ReceiveMessageFrom_Helper(IPAddress.Any.MapToIPv6(), IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFrom not supported on Apple platforms")]
public void ReceiveMessageFromV4BoundToSpecificV4_Success()
{
ReceiveMessageFrom_Helper(IPAddress.Loopback, IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFrom not supported on Apple platforms")]
public void ReceiveMessageFromV4BoundToAnyV4_Success()
{
ReceiveMessageFrom_Helper(IPAddress.Any, IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFrom not supported on Apple platforms")]
public void ReceiveMessageFromV6BoundToSpecificV6_Success()
{
ReceiveMessageFrom_Helper(IPAddress.IPv6Loopback, IPAddress.IPv6Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFrom not supported on Apple platforms")]
public void ReceiveMessageFromV6BoundToAnyV6_Success()
{
ReceiveMessageFrom_Helper(IPAddress.IPv6Any, IPAddress.IPv6Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFrom not supported on Apple platforms")]
public void ReceiveMessageFromV4BoundToAnyV6_Success()
{
ReceiveMessageFrom_Helper(IPAddress.IPv6Any, IPAddress.Loopback);
[Theory]
[InlineData(true)]
[InlineData(false)]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFrom not supported on Apple platforms")]
public void ReceiveMessageFromAsync_SocketAsyncEventArgs_Success(bool ipv4)
{
const int DataLength = 10;
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveMessageFrom not supported on Apple platforms")]
// "The parameter remoteEP must not be of type DnsEndPoint."
public void Socket_BeginReceiveMessageFromDnsEndPoint_Throws()
{
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveMessageFrom not supported on Apple platforms")]
public void BeginReceiveMessageFromV4BoundToSpecificMappedV4_Success()
{
BeginReceiveMessageFrom_Helper(IPAddress.Loopback.MapToIPv6(), IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveMessageFrom not supported on Apple platforms")]
public void BeginReceiveMessageFromV4BoundToAnyMappedV4_Success()
{
BeginReceiveMessageFrom_Helper(IPAddress.Any.MapToIPv6(), IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveMessageFrom not supported on Apple platforms")]
public void BeginReceiveMessageFromV4BoundToSpecificV4_Success()
{
BeginReceiveMessageFrom_Helper(IPAddress.Loopback, IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveMessageFrom not supported on Apple platforms")]
public void BeginReceiveMessageFromV4BoundToAnyV4_Success()
{
BeginReceiveMessageFrom_Helper(IPAddress.Any, IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveMessageFrom not supported on Apple platforms")]
public void BeginReceiveMessageFromV6BoundToSpecificV6_Success()
{
BeginReceiveMessageFrom_Helper(IPAddress.IPv6Loopback, IPAddress.IPv6Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveMessageFrom not supported on Apple platforms")]
public void BeginReceiveMessageFromV6BoundToAnyV6_Success()
{
BeginReceiveMessageFrom_Helper(IPAddress.IPv6Any, IPAddress.IPv6Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveMessageFrom not supported on Apple platforms")]
public void BeginReceiveMessageFromV6BoundToSpecificV4_NotReceived()
{
Assert.Throws<TimeoutException>(() =>
}
[Fact]
- [SkipOnPlatform(TestPlatforms.Linux | TestPlatforms.OSX, "Expected behavior is different on OSX and Linux")]
+ [SkipOnPlatform(TestPlatforms.Linux | TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "Expected behavior is different on Apple platforms and Linux")]
public void BeginReceiveMessageFromV4BoundToSpecificV6_NotReceived()
{
Assert.Throws<TimeoutException>(() =>
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveMessageFrom not supported on Apple platforms")]
public void BeginReceiveMessageFromV6BoundToAnyV4_NotReceived()
{
Assert.Throws<TimeoutException>(() =>
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "BeginReceiveMessageFrom not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "BeginReceiveMessageFrom not supported on Apple platforms")]
public void BeginReceiveMessageFromV4BoundToAnyV6_Success()
{
BeginReceiveMessageFrom_Helper(IPAddress.IPv6Any, IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFromAsync not supported on Apple platforms")]
// "The parameter remoteEP must not be of type DnsEndPoint."
public void Socket_ReceiveMessageFromAsyncDnsEndPoint_Throws()
{
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFromAsync not supported on Apple platforms")]
public void ReceiveMessageFromAsyncV4BoundToSpecificMappedV4_Success()
{
ReceiveMessageFromAsync_Helper(IPAddress.Loopback.MapToIPv6(), IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFromAsync not supported on Apple platforms")]
public void ReceiveMessageFromAsyncV4BoundToAnyMappedV4_Success()
{
ReceiveMessageFromAsync_Helper(IPAddress.Any.MapToIPv6(), IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFromAsync not supported on Apple platforms")]
public void ReceiveMessageFromAsyncV4BoundToSpecificV4_Success()
{
ReceiveMessageFromAsync_Helper(IPAddress.Loopback, IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFromAsync not supported on Apple platforms")]
public void ReceiveMessageFromAsyncV4BoundToAnyV4_Success()
{
ReceiveMessageFromAsync_Helper(IPAddress.Any, IPAddress.Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFromAsync not supported on Apple platforms")]
public void ReceiveMessageFromAsyncV6BoundToSpecificV6_Success()
{
ReceiveMessageFromAsync_Helper(IPAddress.IPv6Loopback, IPAddress.IPv6Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFromAsync not supported on Apple platforms")]
public void ReceiveMessageFromAsyncV6BoundToAnyV6_Success()
{
ReceiveMessageFromAsync_Helper(IPAddress.IPv6Any, IPAddress.IPv6Loopback);
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFromAsync not supported on Apple platforms")]
public void ReceiveMessageFromAsyncV6BoundToSpecificV4_NotReceived()
{
Assert.Throws<TimeoutException>(() =>
}
[Fact]
- [SkipOnPlatform(TestPlatforms.Linux | TestPlatforms.OSX, "Expected behavior is different on OSX and Linux")]
+ [SkipOnPlatform(TestPlatforms.Linux | TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "Expected behavior is different on Apple platforms and Linux")]
public void ReceiveMessageFromAsyncV4BoundToSpecificV6_NotReceived()
{
Assert.Throws<TimeoutException>(() =>
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFromAsync not supported on Apple platforms")]
public void ReceiveMessageFromAsyncV6BoundToAnyV4_NotReceived()
{
Assert.Throws<TimeoutException>(() =>
}
[Fact]
- [SkipOnPlatform(TestPlatforms.OSX, "ReceiveMessageFromAsync not supported on OSX")]
+ [SkipOnPlatform(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS, "ReceiveMessageFromAsync not supported on Apple platforms")]
public void ReceiveMessageFromAsyncV4BoundToAnyV6_Success()
{
ReceiveMessageFromAsync_Helper(IPAddress.IPv6Any, IPAddress.Loopback);
}
[Fact]
- [PlatformSpecific(TestPlatforms.OSX)] // BeginReceiveFrom not supported on OSX
+ [PlatformSpecific(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS)] // BeginReceiveFrom not supported on Apple platforms
public void BeginReceiveFrom_NotSupported()
{
using (Socket sock = new Socket(SocketType.Dgram, ProtocolType.Udp))
}
[Fact]
- [PlatformSpecific(TestPlatforms.OSX)] // BeginReceiveMessageFrom not supported on OSX
+ [PlatformSpecific(TestPlatforms.OSX | TestPlatforms.MacCatalyst | TestPlatforms.iOS | TestPlatforms.tvOS)] // BeginReceiveMessageFrom not supported on Apple platforms
public void BeginReceiveMessageFrom_NotSupported()
{
using (Socket sock = new Socket(SocketType.Dgram, ProtocolType.Udp))