public void TestGetArtistsChartValid() { Musixmatch Musixmatch = new Musixmatch(Environment.GetEnvironmentVariable("MusixmatchApiToken")); String actual = Musixmatch.GetArtistsChart("us").ElementAt(0).ArtistCountry; String expected = "US"; Assert.AreEqual(expected, actual); }
public void TestGetArtistsChartNull() { Musixmatch Musixmatch = new Musixmatch(Environment.GetEnvironmentVariable("MusixmatchApiToken")); try { List <Artist> Album = Musixmatch.GetArtistsChart("ussssss"); } catch (StatusCodeException e) { String actual = e.Message; String expected = "STATUS CODE 404 : The requested resource was not found."; Assert.AreEqual(expected, actual); } }