Пример #1
0
        public virtual void TestBigDecConvertEmpty()
        {
            TextSplitter splitter = new TextSplitter();
            string       emptyStr = splitter.BigDecimalToString(BigDecimal.Zero);

            NUnit.Framework.Assert.AreEqual(string.Empty, emptyStr);
        }
Пример #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);
        }