public void TestGetMatcherTrackValid() { Musixmatch Musixmatch = new Musixmatch(Environment.GetEnvironmentVariable("MusixmatchApiToken")); String actual = Musixmatch.GetMatcherTrack("eminem", "lose yourself").AlbumName; String expected = "Let That Sink In"; Assert.AreEqual(expected, actual); }
public void TestGetMatcherTrackInvalid() { Musixmatch Musixmatch = new Musixmatch(Environment.GetEnvironmentVariable("MusixmatchApiToken")); try { Track Track = Musixmatch.GetMatcherTrack(); } catch (StatusCodeException e) { String actual = e.Message; String expected = "STATUS CODE 400 : The request had bad syntax or was inherently impossible to be satisfied."; Assert.AreEqual(expected, actual); } }