Adds basic tests for card prices

This commit is contained in:
Serraniel 2023-03-03 15:24:06 +01:00
parent 51f530687f
commit 6fd5987d64
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -11,4 +11,18 @@ public class CardTests : ApiTestClass
var cards = await Client.FetchCardsAsync(new CardQueryFilterBuilder { Name = "morpeko" }); var cards = await Client.FetchCardsAsync(new CardQueryFilterBuilder { Name = "morpeko" });
Assert.IsNotEmpty(cards); Assert.IsNotEmpty(cards);
} }
[Test]
public async Task TestGetPrices()
{
// Radiant charizard from Go may have prices in different conditions
var card = (await Client.FetchCardsAsync(new CardQueryFilterBuilder { Uuid = 48495360 })).FirstOrDefault();
Assert.IsNotNull(card);
Assert.IsNotEmpty(card.Prices);
// Zubat, common from Dark Phantasma may have prices for different versions (regular + reverse holo)
card = (await Client.FetchCardsAsync(new CardQueryFilterBuilder { Uuid = 95800678 })).FirstOrDefault();
Assert.IsNotNull(card);
Assert.IsNotEmpty(card.Prices);
}
} }