Exemple #1
0
        public void ValidateLongBoundaryValuesInvalidTest()
        {
            InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor();
            string topLeft     = "90";
            string bottomRight = "90";
            bool   expected    = false;
            bool   actual;

            actual = target.ValidateLongBoundaryValues(topLeft, bottomRight);
            Assert.AreEqual(expected, actual);
            Assert.AreEqual(Properties.Resources.InvalidBoundaryLongValError, target.InvalidBoundaryLongValErrorMessage);
        }
Exemple #2
0
        public void ValidateLongBoundaryValuesPositiveTest()
        {
            InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor();
            string topLeft     = "90";
            string bottomRight = "89";
            bool   expected    = true;
            bool   actual;

            actual = target.ValidateLongBoundaryValues(topLeft, bottomRight);
            Assert.AreEqual(expected, actual);
            Assert.AreEqual(string.Empty, target.InvalidBoundaryLongValErrorMessage);
        }
 public void ValidateLongBoundaryValuesPositiveTest()
 {
     InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor();
     string topLeft = "90";
     string bottomRight = "89";
     bool expected = true;
     bool actual;
     actual = target.ValidateLongBoundaryValues(topLeft, bottomRight);
     Assert.AreEqual(expected, actual);
     Assert.AreEqual(string.Empty, target.InvalidBoundaryLongValErrorMessage);
 }
 public void ValidateLongBoundaryValuesInvalidTest()
 {
     InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor();
     string topLeft = "90";
     string bottomRight = "90";
     bool expected = false;
     bool actual;
     actual = target.ValidateLongBoundaryValues(topLeft, bottomRight);
     Assert.AreEqual(expected, actual);
     Assert.AreEqual(Properties.Resources.InvalidBoundaryLongValError, target.InvalidBoundaryLongValErrorMessage);
 }