-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathPetTests.cs
54 lines (47 loc) · 1.32 KB
/
PetTests.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
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using WowDotNetAPI.Models;
namespace WowDotNetAPI.Explorers.Test
{
[TestClass]
public class PetTests
{
private static WowExplorer explorer;
private static string APIKey = TestStrings.APIKey;
[ClassInitialize]
public static void ClassInit(TestContext context)
{
explorer = new WowExplorer(Region.US, Locale.en_US, APIKey);
}
[TestMethod]
public void Get_Pet_List()
{
var pets = explorer.GetPets();
Assert.IsTrue(pets.Any());
}
[TestMethod]
public void Get_Pet_Ability_Details()
{
var ability = explorer.GetPetAbilityDetails(640);
Assert.IsNotNull(ability);
}
[TestMethod]
public void Get_Pet_Species()
{
var species = explorer.GetPetSpeciesDetails(258);
Assert.IsNotNull(species);
}
[TestMethod]
public void Get_Pet_Stats()
{
var stats = explorer.GetPetStats(258, 25, 5, 4);
Assert.IsNotNull(stats);
}
[TestMethod]
public void Get_Pet_Types()
{
var types = explorer.GetPetTypes();
Assert.IsTrue(types.Any());
}
}
}