public void IsValidToUpdateProfileTestNull() { PictureBox picture = new PictureBox(); bool isValid = ValidatorUtils.IsValidToUpdateProfile("123456", "123456", picture); Assert.IsFalse(isValid); }
public void IsValidToUpdateProfileTestGood() { PictureBox picture = new PictureBox { ImageLocation = "../../assets/cs.png" }; bool isValid = ValidatorUtils.IsValidToUpdateProfile("123456", "123456", picture); Assert.IsTrue(isValid); }