public void CanExtractCVIDFromComicInfoNotes() { string notes = "Scraped metadata from ComicVine [CVDB9383] on 2013.06.03 23:14:42."; ComicVineEComicXMLDataReader dataReader = new ComicVineEComicXMLDataReader(); string id = dataReader.GetCVIDFromNotes(notes); Assert.IsTrue(id == "9383"); }
public void CanHandleNoCVIDFromComicInfoNotes() { string notes = ""; ComicVineEComicXMLDataReader dataReader = new ComicVineEComicXMLDataReader(); string id = dataReader.GetCVIDFromNotes(notes); Assert.IsTrue(id == ""); }