Esempio n. 1
0
        public void ValidateLatBoundaryValuesInvalidTest()
        {
            InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor();
            string topLeft     = "90";
            string bottomRight = "90";
            bool   expected    = false;
            bool   actual;

            actual = target.ValidateLatBoundaryValues(topLeft, bottomRight);
            Assert.AreEqual(expected, actual);
            Assert.AreEqual(Properties.Resources.InvalidBoundaryLatValError, target.InvalidBoundaryLatValErrorMessage);
        }
Esempio n. 2
0
        public void ValidateLatBoundaryValuesPositiveTest()
        {
            InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor();
            string topLeft     = "90";
            string bottomRight = "89";
            bool   expected    = true;
            bool   actual;

            actual = target.ValidateLatBoundaryValues(topLeft, bottomRight);
            Assert.AreEqual(expected, actual);
            Assert.AreEqual(string.Empty, target.InvalidBoundaryLatValErrorMessage);
        }
 public void ValidateLatBoundaryValuesPositiveTest()
 {
     InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor();
     string topLeft = "90";
     string bottomRight = "89";
     bool expected = true;
     bool actual;
     actual = target.ValidateLatBoundaryValues(topLeft, bottomRight);
     Assert.AreEqual(expected, actual);
     Assert.AreEqual(string.Empty, target.InvalidBoundaryLatValErrorMessage);
 }
 public void ValidateLatBoundaryValuesInvalidTest()
 {
     InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor();
     string topLeft = "90";
     string bottomRight = "90";
     bool expected = false;
     bool actual;
     actual = target.ValidateLatBoundaryValues(topLeft, bottomRight);
     Assert.AreEqual(expected, actual);
     Assert.AreEqual(Properties.Resources.InvalidBoundaryLatValError, target.InvalidBoundaryLatValErrorMessage);
 }