Example #1
0
        public void ValidateLatitudeInvalidDataTest()
        {
            InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor();
            string   latitude = "91";
            Position position = Position.BottomRight;
            bool     expected = false;
            bool     actual;

            actual = target.ValidateLatitude(latitude, position);
            Assert.AreEqual(expected, actual);
            Assert.AreEqual(Properties.Resources.InvalidLatitudeError, target.InvalidBottomRightLatitudeErrorMessage);
        }
Example #2
0
        public void ValidateLatitudePositiveTest()
        {
            InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor();
            string   latitude = "90";
            Position position = Position.TopLeft;
            bool     expected = true;
            bool     actual;

            actual = target.ValidateLatitude(latitude, position);
            Assert.AreEqual(expected, actual);
            Assert.AreEqual(string.Empty, target.InvalidTopLeftLatitudeErrorMessage);
        }
 public void ValidateLatitudePositiveTest()
 {
     InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor();
     string latitude = "90";
     Position position = Position.TopLeft;
     bool expected = true;
     bool actual;
     actual = target.ValidateLatitude(latitude, position);
     Assert.AreEqual(expected, actual);
     Assert.AreEqual(string.Empty, target.InvalidTopLeftLatitudeErrorMessage);
 }
 public void ValidateLatitudeInvalidDataTest()
 {
     InputImageDetailsViewModel_Accessor target = new InputImageDetailsViewModel_Accessor();
     string latitude = "91";
     Position position = Position.BottomRight;
     bool expected = false;
     bool actual;
     actual = target.ValidateLatitude(latitude, position);
     Assert.AreEqual(expected, actual);
     Assert.AreEqual(Properties.Resources.InvalidLatitudeError, target.InvalidBottomRightLatitudeErrorMessage);
 }