Exemplo n.º 1
0
        public void StringToDecimal_InpotNullOrEmptyValues_ThrowsNullException(string number, int scale)
        {
            Notation notation = new Notation(scale);

            NUnit.Framework.Assert.Throws <ArgumentNullException>(() => StringToDecimal.ConvertingToDecimal(number, notation));
        }
Exemplo n.º 2
0
        public void StringToDecimal_InputTooBigValues_ThrowsOverflowException(string number, int scale)
        {
            Notation notation = new Notation(scale);

            NUnit.Framework.Assert.Throws <OverflowException>(() => StringToDecimal.ConvertingToDecimal(number, notation));
        }
Exemplo n.º 3
0
        public int StringToDecimal_CorrectValues_PositiveTest(string number, int scale)
        {
            Notation notation = new Notation(scale);

            return(StringToDecimal.ConvertingToDecimal(number, notation));
        }