This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 147
/
Tests.cs
90 lines (67 loc) · 2.47 KB
/
Tests.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
using System;
using System.Threading.Tasks;
using Android.App;
using Android.OS;
using Android.Support.V4.App;
using Xunit;
namespace GooglePlayServices.Tests
{
public class Tests
{
[Fact]
public void Common_GooglePlayServicesUtil_Exists()
{
var versionCode = Android.Gms.Common.GooglePlayServicesUtil.GooglePlayServicesVersionCode;
Console.WriteLine("Common.GooglePlayServicesUtil.GooglePlayServicesVersionCode: {0}", versionCode);
Assert.True(versionCode > 0);
}
[Fact]
public void Common_GoogleApiAvailability_Exists()
{
var versionCode = Android.Gms.Common.GoogleApiAvailability.GooglePlayServicesVersionCode;
Console.WriteLine("Common.GoogleApiAvailability.GooglePlayServicesVersionCode:: {0}", versionCode);
Assert.True(versionCode > 0);
}
[Fact]
public void Auth_GoogleAuthUtil_Exists()
{
var googleAccountType = Android.Gms.Auth.GoogleAuthUtil.GoogleAccountType;
Console.WriteLine("Auth.GoogleAuthUtil.GoogleAccountType: {0}", googleAccountType);
Assert.True(googleAccountType != null);
}
[Fact]
public void Location_Places_UI_PlacePicker_Exists()
{
var resErr = Android.Gms.Location.Places.UI.PlacePicker.ResultError;
Console.WriteLine("Location.Places.UI.PlacePicker.ResultError: {0}", resErr);
Assert.True(resErr == 2);
}
[Fact]
public void Location_Places_UI_PlacePicker_IntentBuilder_Exists()
{
var ib = new Android.Gms.Location.Places.UI.PlacePicker.IntentBuilder ();
Console.WriteLine("Location.Places.UI.PlacePicker.IntentBuilder: {0}", ib != null);
Assert.True(ib != null);
}
[Fact]
public void Location_Places_UI_PlaceAutocomplete_Exists()
{
var resErr = Android.Gms.Location.Places.UI.PlaceAutocomplete.ResultError;
Console.WriteLine("Location.Places.UI.PlaceAutocomplete.ResultError: {0}", resErr);
Assert.True(resErr == 2);
}
[Fact]
public void Location_Places_UI_PlaceAutocomplete_IntentBuilder_Exists()
{
var resErr = new Android.Gms.Location.Places.UI.PlaceAutocomplete.IntentBuilder();
Console.WriteLine("Location.Places.UI.PlaceAutocomplete.ResultError: {0}", resErr);
Assert.True(resErr == 2);
}
[Fact]
public void Cast_Framework_Media_Widget_ExpandedControllerActivity_Exists()
{
var a = Android.Gms.Cast.Framework.Media.Widget.ExpandedControllerActivity.ActivityService;
Assert.True(a != null);
}
}
}