2023-03-01 17:29:39 +01:00
|
|
|
using JpnCardsPokemon.Tests.Classes;
|
|
|
|
|
2023-03-01 22:06:38 +01:00
|
|
|
namespace JpnCardsPokemon.Tests;
|
2023-03-01 17:29:39 +01:00
|
|
|
|
|
|
|
public class SetTests : ApiTestClass
|
|
|
|
{
|
|
|
|
[Test]
|
|
|
|
public async Task TestFetchSets()
|
|
|
|
{
|
|
|
|
var sets = await Client.FetchSetsAsync();
|
|
|
|
Assert.IsNotEmpty(sets);
|
|
|
|
}
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
public async Task TestFetchSetById()
|
|
|
|
{
|
|
|
|
// 1 should be Incandescent Arcana (s11a). Hopefully this won't change (:
|
|
|
|
var set = await Client.FetchSetById(1);
|
|
|
|
Assert.IsNotNull(set);
|
|
|
|
Assert.That(set?.SetCode, Is.EqualTo("s11a"));
|
|
|
|
}
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
public async Task TestFetchSetByUuid()
|
|
|
|
{
|
|
|
|
// 72218005 should be Incandescent Arcana (s11a). Hopefully this won't change (:
|
|
|
|
var set = await Client.FetchSetByUuid(72218005);
|
|
|
|
Assert.IsNotNull(set);
|
|
|
|
Assert.That(set?.SetCode, Is.EqualTo("s11a"));
|
|
|
|
}
|
|
|
|
}
|