public void WriteMaxUint() { ICharAppender writer = new CharAppender(); IPrint ulongprinter = new NumberPrinter(writer); ulongprinter.putlong(ulong.MaxValue); string actualString = writer.GetTotalString(); Assert.AreEqual(ulong.MaxValue.ToString(), actualString); }
public void WriteZero() { ulong zero = 0; ICharAppender writer = new CharAppender(); IPrint ulongprinter = new NumberPrinter(writer); ulongprinter.putlong(zero); string actualString = writer.GetTotalString(); Assert.AreEqual("0", actualString); }
public void WriteThousand() { ulong thousand = 1000; ICharAppender writer = new CharAppender(); IPrint ulongprinter = new NumberPrinter(writer); ulongprinter.putlong(thousand); string actualString = writer.GetTotalString(); Assert.AreEqual(thousand.ToString(), actualString); }
public void WriteLessTen() { ulong five = 5; ICharAppender writer = new CharAppender(); IPrint ulongprinter = new NumberPrinter(writer); ulongprinter.putlong(five); string actualString = writer.GetTotalString(); Assert.AreEqual("5", actualString); }
public void WriteLessHunder() { ulong fifty = 50; ICharAppender writer = new CharAppender(); IPrint ulongprinter = new NumberPrinter(writer); ulongprinter.putlong(fifty); string actualString = writer.GetTotalString(); Assert.AreEqual(fifty.ToString(), actualString); }