Пример #1
0
        public virtual void TestStringConvertEmpty()
        {
            TextSplitter splitter    = new TextSplitter();
            BigDecimal   emptyBigDec = splitter.StringToBigDecimal(string.Empty);

            NUnit.Framework.Assert.AreEqual(BigDecimal.Zero, emptyBigDec);
        }
Пример #2
0
        public virtual void TestConvertStr()
        {
            TextSplitter splitter = new TextSplitter();
            string       @out     = splitter.BigDecimalToString(splitter.StringToBigDecimal("big str"));

            NUnit.Framework.Assert.AreEqual("big str", @out);
        }
Пример #3
0
        public virtual void TestConvertChomped()
        {
            TextSplitter splitter = new TextSplitter();
            string       @out     = splitter.BigDecimalToString(splitter.StringToBigDecimal("AVeryLongStringIndeed"
                                                                                            ));

            NUnit.Framework.Assert.AreEqual("AVeryLon", @out);
        }