Esempio n. 1
0
        public void TrimLengthString_WithNormalString_ReturnsString()
        {
            string lStr = "99999999999999999999999999999";

            try
            {
                PEMDAS lPemdas = new PEMDAS(lStr);

                decimal lResult = lPemdas.GetDecimalFromString(lStr);
            }
            catch (Exception e)
            {
                Assert.AreEqual($"Le format de la valeur est incorrecte ({lStr})", e.Message);
                return;
            }

            Assert.Fail("Exception was raised but not catched");
        }