public void HundredSegmentNonZeroTest() { StringBuilder str = new StringBuilder(1); HundredSegment.AppendToFlag(true, 0, str); Assert.AreEqual("", str.ToString()); }
public void HundredSegmentZeroTest() { StringBuilder str = new StringBuilder(4); HundredSegment.AppendToFlag(false, 0, str); Assert.AreEqual("zero", str.ToString()); }
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()); }
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()); }