public void Skins_can_be_created_from_json() => AssertEx.ForEach( fixture.Skins, json => { using var document = JsonDocument.Parse(json); var actual = document.RootElement.GetSkin(MissingMemberBehavior.Error); SkinFact.Id_is_positive(actual); } );
public void Skins_can_be_created_from_json() { var settings = new JsonSerializerSettingsBuilder().UseTraceWriter(new XunitTraceWriter(_output)) .UseMissingMemberHandling(MissingMemberHandling.Error) .Build(); AssertEx.ForEach(_fixture.Db.Skins, json => { var actual = JsonConvert.DeserializeObject <Skin>(json, settings); SkinFact.Id_is_positive(actual); }); }