public void ValidateInputImagePathEmptyTest() { InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor(); string imagePath = string.Empty; bool expected = false; bool actual; actual = target.ValidateInputImagePath(imagePath); Assert.AreEqual(expected, actual); }
public void ValidateInputImagePathInvalidTest() { InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor(); string imagePath = Environment.CurrentDirectory + @"\Test.Png"; bool expected = false; bool actual; actual = target.ValidateInputImagePath(imagePath); Assert.AreEqual(expected, actual); }
public void ValidateInputImagePathTest() { InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor(); string imagePath = Environment.CurrentDirectory + @"\Image\L0X0Y0.Png"; bool expected = true; bool actual; actual = target.ValidateInputImagePath(imagePath); Assert.AreEqual(expected, actual); Assert.AreEqual(target.InvalidFolderPathErrorMessage, string.Empty); }