コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 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);
 }
コード例 #5
0
 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);
 }
コード例 #6
0
 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);
 }