forked from xamarin/Essentials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConnectivity_Tests.cs
More file actions
24 lines (20 loc) · 815 Bytes
/
Connectivity_Tests.cs
File metadata and controls
24 lines (20 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using Xamarin.Essentials;
using Xunit;
namespace Tests
{
public class Connectivity_Tests
{
[Fact]
public void Network_Access_On_NetStandard() =>
Assert.Throws<NotImplementedInReferenceAssemblyException>(() => Connectivity.NetworkAccess);
[Fact]
public void ConnectionProfiles_On_NetStandard() =>
Assert.Throws<NotImplementedInReferenceAssemblyException>(() => Connectivity.ConnectionProfiles);
[Fact]
public void Connectivity_Changed_Event_On_NetStandard() =>
Assert.Throws<NotImplementedInReferenceAssemblyException>(() => Connectivity.ConnectivityChanged += Connectivity_ConnectivityChanged);
void Connectivity_ConnectivityChanged(object sender, ConnectivityChangedEventArgs e)
{
}
}
}