public void TestGetAlbumTracksValid() { Musixmatch Musixmatch = new Musixmatch(Environment.GetEnvironmentVariable("MusixmatchApiToken")); String actual = Musixmatch.GetAlbumTracks("13750844").ElementAt(0).AlbumName; String expected = "Parachutes"; Assert.AreEqual(expected, actual); }
public void TestGetAlbumTracksInvalid() { Musixmatch Musixmatch = new Musixmatch(Environment.GetEnvironmentVariable("MusixmatchApiToken")); try { List <Track> Track = Musixmatch.GetAlbumTracks("-1", ""); } catch (StatusCodeException e) { String actual = e.Message; String expected = "STATUS CODE 404 : The requested resource was not found."; Assert.AreEqual(expected, actual); } }