コード例 #1
0
 public void Items_can_be_created_from_json() =>
 Assert.All(
     fixture.Items,
     json =>
 {
     using var document = JsonDocument.Parse(json);
     var actual         = document.RootElement.GetItem(MissingMemberBehavior.Error);
     ItemFacts.Validate(actual);
 }
     );
コード例 #2
0
    public async Task Items_can_be_enumerated()
    {
        await using Composer services = new();
        var sut = services.Resolve <Gw2Client>();

        await foreach (var actual in sut.Items.GetItems())
        {
            ItemFacts.Validate(actual);
        }
    }