public void ImdbIdMaxMinusOne() { clsLink aLink = new clsLink(); Int32 error = 0; string imdbId = "0000000"; error = aLink.Valid(imdbId).Count; Assert.AreEqual(error, 0); }
public void ImdbIdLessOne() { clsLink aLink = new clsLink(); Int32 error = 0; string imdbId = ""; error = aLink.Valid(imdbId).Count; Assert.AreNotEqual(error, 0); }
public void IllictCharacter() { clsLink aLink = new clsLink(); Int32 error = 0; string illicitCharacter = "111111@"; error = aLink.Valid(illicitCharacter).Count; Assert.AreNotEqual(error, 0); }
public void ValidMethodOk() { clsLink aLink = new clsLink(); Int32 error = 0; string imdbId = "0072271"; error = aLink.Valid(imdbId).Count; Assert.AreEqual(error, 0); }
public void ImdbIdExtremeMax() { clsLink aLink = new clsLink(); Int32 error = 0; string imdbId = ""; imdbId = imdbId.PadRight(80, '0'); error = aLink.Valid(imdbId).Count; Assert.AreNotEqual(error, 0); }