예제 #1
0
        public void HundredSegmentNonZeroTest()
        {
            StringBuilder str = new StringBuilder(1);

            HundredSegment.AppendToFlag(true, 0, str);
            Assert.AreEqual("", str.ToString());
        }
예제 #2
0
        public void HundredSegmentZeroTest()
        {
            StringBuilder str = new StringBuilder(4);

            HundredSegment.AppendToFlag(false, 0, str);
            Assert.AreEqual("zero", str.ToString());
        }
예제 #3
0
        public void HundredSegmentNonZeroConvTest()
        {
            StringBuilder strFlag = new StringBuilder(0);
            StringBuilder strConv = new StringBuilder(0);

            HundredSegment.AppendToFlag(true, 0, strFlag);
            HundredSegment.AppendTo(0, strConv);
            Assert.AreEqual(strFlag.ToString(), strConv.ToString());
        }
예제 #4
0
        public void HundredSegmentZeroConvTest()
        {
            StringBuilder strFlag = new StringBuilder(4);
            StringBuilder strConv = new StringBuilder(4);

            HundredSegment.AppendToFlag(false, 0, strFlag);
            HundredSegment.AppendToWithZero(0, strConv);
            Assert.AreEqual(strFlag.ToString(), strConv.ToString());
        }