Skip to content

Commit

Permalink
Update tests (#63)
Browse files Browse the repository at this point in the history
* Update nuget packages and test data.
* Remove net45 target.
* Remove Travis build configuration.
  • Loading branch information
wo80 committed Nov 21, 2022
1 parent d193353 commit 56ec9d1
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 100 deletions.
8 changes: 3 additions & 5 deletions Hqub.MusicBrainz/Hqub.MusicBrainz.API.Test/ArtistTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,10 @@ public void TestArtistTags()
Assert.IsNotNull(list);
Assert.GreaterOrEqual(list.Count, 1);

var tag = list[7];
var tag = list.OrderByDescending(i => i.Count).First();

Assert.IsNotNull(tag);

Assert.GreaterOrEqual(tag.Count, 1);
Assert.AreEqual("blues", tag.Name);
Assert.GreaterOrEqual(tag.Count, 5);
Assert.AreEqual("folk rock", tag.Name);
}

[Test]
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"rating":{"votes-count":1,"value":5},"video":false,"aliases":[],"title":"Alone Again Or","genres":[{"name":"indie","id":"538c905b-642d-43c9-b071-439af11cc471","count":1,"disambiguation":""},{"name":"southern rock","id":"905c1899-3027-4d29-8d9c-bbeef2c8628a","count":1,"disambiguation":""}],"first-release-date":"2003-06-30","disambiguation":"","releases":[{"id":"46888c28-6d39-4146-a82c-700f74fa0792","packaging":null,"barcode":"724354727825","tags":[],"status":"Official","text-representation":{"language":"eng","script":"Latn"},"quality":"normal","release-events":[{"date":"2003-06-30","area":{"name":"Germany","id":"85752fda-13c4-31a3-bee5-0e5cb1f51dad","type":null,"iso-3166-1-codes":["DE"],"disambiguation":"","type-id":null,"sort-name":"Germany"}}],"country":"DE","date":"2003-06-30","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","aliases":[],"title":"Alone Again Or","genres":[],"packaging-id":null,"disambiguation":""},{"release-events":[{"area":{"name":"United Kingdom","id":"8a754a16-0027-3a29-b6d7-2b40ea0481ed","type":null,"iso-3166-1-codes":["GB"],"disambiguation":"","type-id":null,"sort-name":"United Kingdom"},"date":"2003-07-28"}],"text-representation":{"language":"eng","script":"Latn"},"quality":"normal","status":"Official","tags":[],"barcode":"724359185521","packaging":null,"id":"0bde515b-2696-471c-badf-5228259f24fb","disambiguation":"","packaging-id":null,"genres":[],"title":"Good Vibes: The Jingly Jangly Sound of Summer","aliases":[],"status-id":"4e304316-386d-3409-af2e-78857eec5cfe","date":"2003-07-28","country":"GB"},{"barcode":"0724359547121","packaging":null,"id":"184445c3-bc58-4eed-9e5f-ba66bd75af12","release-events":[{"date":"2003","area":{"id":"5b8a5ee5-0bb3-34cf-9a75-c27c44e341fc","name":"Belgium","iso-3166-1-codes":["BE"],"type":null,"type-id":null,"disambiguation":"","sort-name":"Belgium"}}],"text-representation":{"script":"Latn","language":"eng"},"quality":"normal","status":"Official","tags":[],"genres":[],"title":"Humo’s Top 2003","aliases":[],"status-id":"4e304316-386d-3409-af2e-78857eec5cfe","date":"2003","country":"BE","disambiguation":"","packaging-id":null},{"barcode":"036172009022","packaging":"Jewel Case","id":"8edf887c-f8ee-4663-af02-0a5117acc808","text-representation":{"script":"Latn","language":"mul"},"quality":"normal","release-events":[{"date":"2004-04-06","area":{"iso-3166-1-codes":["US"],"type":null,"name":"United States","id":"489ce91b-6658-3307-9877-795b68554c98","sort-name":"United States","type-id":null,"disambiguation":""}}],"tags":[],"status":"Official","title":"Convict Pool","aliases":[],"genres":[],"status-id":"4e304316-386d-3409-af2e-78857eec5cfe","country":"US","date":"2004-04-06","disambiguation":"","packaging-id":"ec27701a-4a22-37f4-bfac-6616e0f9750a"},{"disambiguation":"","packaging-id":null,"title":"Hear Music Playlist, Volume 3","aliases":[],"genres":[],"status-id":"4e304316-386d-3409-af2e-78857eec5cfe","country":null,"date":"2004","text-representation":{"language":"eng","script":"Latn"},"quality":"normal","release-events":[{"date":"2004","area":null}],"tags":[],"status":"Official","barcode":null,"packaging":null,"id":"59f9c733-5642-4cee-a519-275adfeccd60"},{"id":"266080f0-2e7a-49d2-ac27-887b2d840107","barcode":"","packaging":"Cardboard/Paper Sleeve","tags":[],"status":"Promotion","quality":"normal","text-representation":{"language":"eng","script":"Latn"},"release-events":[{"area":{"disambiguation":"","type-id":null,"sort-name":"United States","id":"489ce91b-6658-3307-9877-795b68554c98","name":"United States","type":null,"iso-3166-1-codes":["US"]},"date":"2004"}],"country":"US","date":"2004","title":"Touch and Go/Quarterstick Records Spring 2004 Sampler","aliases":[],"genres":[],"status-id":"518ffc83-5cde-34df-8627-81bff5093d92","disambiguation":"","packaging-id":"f7101ce3-0384-39ce-9fde-fbbd0044d35f"},{"aliases":[{"type-id":null,"primary":null,"locale":null,"begin":null,"ended":false,"type":null,"sort-name":"Feast Of Wire","end":null,"name":"Feast Of Wire"}],"title":"Feast of Wire","genres":[],"status-id":"4e304316-386d-3409-af2e-78857eec5cfe","country":null,"date":"2010-11-05","disambiguation":"limited deluxe edition","packaging-id":"ec27701a-4a22-37f4-bfac-6616e0f9750a","barcode":"4250506800482","packaging":"Jewel Case","id":"1d22deda-5427-4b32-83c3-d36a369c2070","quality":"normal","text-representation":{"language":"eng","script":"Latn"},"release-events":[{"date":"2010-11-05","area":null},{"date":"2010-11-15","area":{"type-id":null,"disambiguation":"","sort-name":"Europe","id":"89a675c2-3e37-3518-b83c-418bad59a85a","name":"Europe","iso-3166-1-codes":["XE"],"type":null}}],"tags":[],"status":"Official"},{"id":"96e40788-23f6-4bdd-8a48-a5d7bc6a6607","barcode":"","packaging":null,"status":"Official","tags":[{"count":1,"name":"alternative"},{"name":"americana","count":1},{"name":"cinematic","count":1},{"name":"desertnoir","count":1},{"name":"texmex","count":1},{"name":"tucson","count":1},{"name":"world","count":1}],"text-representation":{"script":"Latn","language":"mul"},"quality":"normal","genres":[{"disambiguation":"","count":1,"name":"americana","id":"2c765e49-a12e-45eb-b628-f8b9cc0a0250"}],"aliases":[],"title":"Convict Pool","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","disambiguation":"","packaging-id":null},{"packaging-id":"119eba76-b343-3e02-a292-f0f00644bb9b","disambiguation":"limited deluxe edition","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","genres":[],"title":"Feast of Wire","aliases":[],"date":"","country":"XW","release-events":[{"date":"","area":{"iso-3166-1-codes":["XW"],"type":null,"id":"525d4e18-3d00-31b9-a58b-a146a916de8f","name":"[Worldwide]","sort-name":"[Worldwide]","type-id":null,"disambiguation":""}}],"quality":"normal","text-representation":{"script":"Latn","language":"eng"},"status":"Official","tags":[],"packaging":"None","barcode":"0884463983922","id":"4ef9b58f-28f1-4953-9958-d603790df71e"}],"relations":[],"artist-credit":[{"joinphrase":"","name":"Calexico","artist":{"disambiguation":"","sort-name":"Calexico","name":"Calexico","tags":[{"name":"american","count":2},{"name":"americana","count":1},{"name":"américain","count":1},{"name":"country","count":1},{"count":1,"name":"indie"},{"count":2,"name":"indie rock"},{"count":1,"name":"usa"}],"aliases":[{"ended":false,"type":null,"type-id":null,"primary":null,"locale":null,"begin":null,"name":"Calexico vs. Buscemi","sort-name":"Calexico vs. Buscemi","end":null},{"primary":null,"locale":null,"begin":null,"type-id":null,"type":null,"ended":false,"sort-name":"Calexio","end":null,"name":"Calexio"}],"type-id":"e431f5f6-b5d2-343d-8b36-72607fffb74b","genres":[{"count":1,"disambiguation":"","id":"2c765e49-a12e-45eb-b628-f8b9cc0a0250","name":"americana"},{"count":1,"disambiguation":"","name":"country","id":"5f665615-7fb3-49d8-b541-62a7b239edbe"},{"name":"indie","id":"538c905b-642d-43c9-b071-439af11cc471","disambiguation":"","count":1},{"name":"indie rock","id":"ccd19ebf-052c-4afe-8ad9-fbb0a73f94a7","count":2,"disambiguation":""}],"id":"5e372a49-5672-4fb8-ba14-18c90780c4f9","type":"Group"}}],"length":204333,"id":"9408b8ce-9b95-4fb0-ac70-595d054a15c6","tags":[{"count":1,"name":"alternative"},{"count":1,"name":"indie"},{"name":"southern rock","count":1}]}
{"aliases":[],"releases":[{"status":"Official","packaging":null,"country":"DE","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","aliases":[],"date":"2003-06-30","genres":[],"packaging-id":null,"id":"46888c28-6d39-4146-a82c-700f74fa0792","disambiguation":"","tags":[],"release-events":[{"date":"2003-06-30","area":{"sort-name":"Germany","disambiguation":"","name":"Germany","id":"85752fda-13c4-31a3-bee5-0e5cb1f51dad","type":null,"type-id":null,"iso-3166-1-codes":["DE"]}}],"text-representation":{"script":"Latn","language":"eng"},"title":"Alone Again Or","barcode":"724354727825","quality":"normal"},{"country":"GB","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","aliases":[],"status":"Official","packaging":null,"date":"2003-07-28","packaging-id":null,"id":"0bde515b-2696-471c-badf-5228259f24fb","genres":[],"tags":[],"disambiguation":"","release-events":[{"date":"2003-07-28","area":{"disambiguation":"","name":"United Kingdom","sort-name":"United Kingdom","type":null,"id":"8a754a16-0027-3a29-b6d7-2b40ea0481ed","iso-3166-1-codes":["GB"],"type-id":null}}],"title":"Good Vibes: The Jingly Jangly Sound of Summer","barcode":"724359185521","text-representation":{"script":"Latn","language":"eng"},"quality":"normal"},{"country":"BE","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","aliases":[],"status":"Official","packaging":null,"date":"2003","id":"184445c3-bc58-4eed-9e5f-ba66bd75af12","packaging-id":null,"genres":[],"tags":[],"disambiguation":"","release-events":[{"date":"2003","area":{"disambiguation":"","name":"Belgium","sort-name":"Belgium","type":null,"id":"5b8a5ee5-0bb3-34cf-9a75-c27c44e341fc","iso-3166-1-codes":["BE"],"type-id":null}}],"title":"Humo’s Top 2003","barcode":"0724359547121","text-representation":{"language":"eng","script":"Latn"},"quality":"normal"},{"date":"2004-04-06","country":"US","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","aliases":[],"status":"Official","packaging":"None","packaging-id":"119eba76-b343-3e02-a292-f0f00644bb9b","id":"96e40788-23f6-4bdd-8a48-a5d7bc6a6607","genres":[{"id":"2c765e49-a12e-45eb-b628-f8b9cc0a0250","name":"americana","disambiguation":"","count":2}],"release-events":[{"area":{"type-id":null,"iso-3166-1-codes":["US"],"type":null,"id":"489ce91b-6658-3307-9877-795b68554c98","disambiguation":"","name":"United States","sort-name":"United States"},"date":"2004-04-06"}],"tags":[{"count":1,"name":"alternative"},{"count":2,"name":"americana"},{"count":2,"name":"cinematic"},{"count":1,"name":"desertnoir"},{"name":"texmex","count":1},{"name":"tucson","count":1},{"name":"world","count":2}],"disambiguation":"","quality":"normal","title":"Convict Pool","barcode":"036172009060","text-representation":{"script":"Latn","language":"mul"}},{"date":"2004-04-06","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","aliases":[],"country":"US","packaging":"Jewel Case","status":"Official","packaging-id":"ec27701a-4a22-37f4-bfac-6616e0f9750a","id":"8edf887c-f8ee-4663-af02-0a5117acc808","genres":[],"release-events":[{"date":"2004-04-06","area":{"sort-name":"United States","disambiguation":"","name":"United States","id":"489ce91b-6658-3307-9877-795b68554c98","type":null,"type-id":null,"iso-3166-1-codes":["US"]}}],"tags":[],"disambiguation":"","quality":"normal","barcode":"036172009022","title":"Convict Pool","text-representation":{"script":"Latn","language":"mul"}},{"packaging-id":null,"id":"59f9c733-5642-4cee-a519-275adfeccd60","genres":[],"date":"2004","aliases":[],"status-id":"4e304316-386d-3409-af2e-78857eec5cfe","country":null,"packaging":null,"status":"Official","quality":"normal","barcode":null,"title":"Hear Music Playlist, Volume 3","text-representation":{"script":"Latn","language":"eng"},"release-events":[{"date":"2004","area":null}],"tags":[],"disambiguation":""},{"genres":[],"packaging-id":"f7101ce3-0384-39ce-9fde-fbbd0044d35f","id":"266080f0-2e7a-49d2-ac27-887b2d840107","date":"2004","status":"Promotion","packaging":"Cardboard/Paper Sleeve","country":"US","aliases":[],"status-id":"518ffc83-5cde-34df-8627-81bff5093d92","quality":"normal","text-representation":{"script":"Latn","language":"eng"},"title":"Touch and Go/Quarterstick Records Spring 2004 Sampler","barcode":"","release-events":[{"area":{"id":"489ce91b-6658-3307-9877-795b68554c98","type":null,"type-id":null,"iso-3166-1-codes":["US"],"sort-name":"United States","disambiguation":"","name":"United States"},"date":"2004"}],"disambiguation":"","tags":[]},{"quality":"normal","barcode":"4250506800482","title":"Feast of Wire","text-representation":{"language":"eng","script":"Latn"},"release-events":[{"area":null,"date":"2010-11-05"},{"date":"2010-11-15","area":{"disambiguation":"","name":"Europe","sort-name":"Europe","type":null,"id":"89a675c2-3e37-3518-b83c-418bad59a85a","iso-3166-1-codes":["XE"],"type-id":null}}],"tags":[],"disambiguation":"limited deluxe edition","id":"1d22deda-5427-4b32-83c3-d36a369c2070","packaging-id":"ec27701a-4a22-37f4-bfac-6616e0f9750a","genres":[],"date":"2010-11-05","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","aliases":[{"ended":false,"sort-name":"Feast Of Wire","primary":null,"name":"Feast Of Wire","locale":null,"type-id":null,"end":null,"begin":null,"type":null}],"country":null,"packaging":"Jewel Case","status":"Official"},{"title":"Feast of Wire","barcode":"0884463983922","text-representation":{"script":"Latn","language":"eng"},"quality":"normal","tags":[],"disambiguation":"limited deluxe edition","release-events":[{"area":{"sort-name":"[Worldwide]","disambiguation":"","name":"[Worldwide]","id":"525d4e18-3d00-31b9-a58b-a146a916de8f","type":null,"type-id":null,"iso-3166-1-codes":["XW"]},"date":""}],"id":"4ef9b58f-28f1-4953-9958-d603790df71e","packaging-id":"119eba76-b343-3e02-a292-f0f00644bb9b","genres":[],"country":"XW","aliases":[],"status-id":"4e304316-386d-3409-af2e-78857eec5cfe","status":"Official","packaging":"None","date":""}],"first-release-date":"2003-06-30","genres":[{"name":"alternative country","count":1,"disambiguation":"","id":"5f9cba3d-1a9f-46cd-8c49-7ed78d1f3354"},{"disambiguation":"","name":"americana","count":1,"id":"2c765e49-a12e-45eb-b628-f8b9cc0a0250"},{"id":"5f665615-7fb3-49d8-b541-62a7b239edbe","count":1,"name":"country","disambiguation":""},{"id":"cc38aba3-48ed-439a-83b9-f81a34a66598","name":"downtempo","count":1,"disambiguation":""},{"id":"89255676-1f14-4dd8-bbad-fca839d6aff4","name":"electronic","disambiguation":"","count":1},{"name":"pop","count":1,"disambiguation":"","id":"911c7bbb-172d-4df8-9478-dbff4296e791"},{"id":"905c1899-3027-4d29-8d9c-bbeef2c8628a","disambiguation":"","name":"southern rock","count":1},{"name":"trip hop","disambiguation":"","count":1,"id":"45eb1d9c-588c-4dc8-9394-a14b7c8f02bc"}],"id":"9408b8ce-9b95-4fb0-ac70-595d054a15c6","relations":[],"disambiguation":"","tags":[{"count":1,"name":"alternative"},{"name":"alternative country","count":1},{"name":"americana","count":1},{"name":"country","count":1},{"count":1,"name":"downtempo"},{"name":"electronic","count":1},{"count":1,"name":"indie"},{"count":1,"name":"pop"},{"name":"southern rock","count":1},{"count":1,"name":"trip hop"}],"rating":{"votes-count":1,"value":5},"artist-credit":[{"joinphrase":"","name":"Calexico","artist":{"type-id":"e431f5f6-b5d2-343d-8b36-72607fffb74b","id":"5e372a49-5672-4fb8-ba14-18c90780c4f9","type":"Group","genres":[{"id":"2c765e49-a12e-45eb-b628-f8b9cc0a0250","name":"americana","disambiguation":"","count":1},{"name":"country","count":1,"disambiguation":"","id":"5f665615-7fb3-49d8-b541-62a7b239edbe"},{"id":"ccd19ebf-052c-4afe-8ad9-fbb0a73f94a7","count":2,"name":"indie rock","disambiguation":""}],"tags":[{"count":2,"name":"american"},{"count":1,"name":"americana"},{"name":"américain","count":1},{"name":"country","count":1},{"name":"indie","count":1},{"name":"indie rock","count":2},{"count":1,"name":"usa"}],"aliases":[{"ended":false,"name":"Calexico vs. Buscemi","primary":null,"sort-name":"Calexico vs. Buscemi","type-id":null,"locale":null,"type":null,"begin":null,"end":null},{"ended":false,"name":"Calexio","primary":null,"sort-name":"Calexio","type-id":null,"locale":null,"begin":null,"type":null,"end":null}],"sort-name":"Calexico","name":"Calexico","disambiguation":""}}],"video":false,"length":204333,"title":"Alone Again Or"}

Large diffs are not rendered by default.

Loading

0 comments on commit 56ec9d1

Please sign in to comment.