Exemplo n.º 1
0
        public void MillionSegmentExtractTest()
        {
            StringBuilder strMillion = new StringBuilder();
            StringBuilder strHundred = new StringBuilder();

            HundredSegment.AppendTo(123, strHundred);
            strHundred.Append(" million");

            ThousandBaseSegment.AppendTo(Numerals.Large.million, 123456789, strMillion);

            Assert.AreEqual(strHundred.ToString(), strMillion.ToString());
        }
Exemplo n.º 2
0
        public void ThousandSegmentExtractTest()
        {
            StringBuilder strThousand = new StringBuilder();
            StringBuilder strHundred  = new StringBuilder();

            HundredSegment.AppendTo(456, strHundred);
            strHundred.Append(" thousand");

            ThousandBaseSegment.AppendTo(Numerals.Large.thousand, 123456789, strThousand);

            Assert.AreEqual(strHundred.ToString(), strThousand.ToString());
        }