Ejemplo n.º 1
0
        public void TestValidateAndConvertToDoubleNotOK2()
        {
            string teststring = "-100";

            Assert.AreNotEqual(ValidateInput.ValidateAndConvertToDouble(teststring), new Tuple <bool, double>(true, 100));
            Assert.AreEqual(ValidateInput.ValidateAndConvertToDouble(teststring), new Tuple <bool, double>(false, Double.MinValue));
        }
Ejemplo n.º 2
0
        public void TestValidateAndConvertToDoubleOK()
        {
            string teststring = "100";

            Assert.AreEqual(ValidateInput.ValidateAndConvertToDouble(teststring), new Tuple <bool, double>(true, 100));
        }