-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathEveWho_Tests.cs
More file actions
38 lines (32 loc) · 1.13 KB
/
EveWho_Tests.cs
File metadata and controls
38 lines (32 loc) · 1.13 KB
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
using System.Threading.Tasks;
using eZet.EveLib.EveWhoModule;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace eZet.EveLib.Test {
[TestClass]
public class EveWho_Tests {
private readonly EveWho _api = new EveWho();
[TestMethod]
public async Task GetCharacter_NoErrors() {
var data = await _api.GetCharacterAsync(1633218082);
Assert.IsNotNull(data.History);
}
[TestMethod]
public async Task GetCorporation_NoErrors() {
var data = await _api.GetCorporationAsync(869043665);
}
[TestMethod]
public async Task GetCorporationMember_NoErrors() {
var data = await _api.GetCorporationMembersAsync(869043665);
Assert.IsNotNull(data.Members);
}
[TestMethod]
public async Task GetAlliance_NoErrors() {
var data = await _api.GetAllianceAsync(99001433);
}
[TestMethod]
public async Task GetAllianceMembers_NoErrors() {
var data = await _api.GetAllianceMembersAsync(99001433);
Assert.IsNotNull(data.Members);
}
}
}