Adds basic tests for card prices
This commit is contained in:
parent
51f530687f
commit
6fd5987d64
|
@ -11,4 +11,18 @@ public class CardTests : ApiTestClass
|
|||
var cards = await Client.FetchCardsAsync(new CardQueryFilterBuilder { Name = "morpeko" });
|
||||
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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue