Ejemplo n.º 1
0
        public void whenWeWriteAStringThatStringIsAddedToPaperCurrentContent()
        {
            paper = new Paper("I am");
            paper.AddContent(pencil.Write(" Writing"));

            Assert.AreEqual("I am Writing", paper.content);
        }
Ejemplo n.º 2
0
        public void whenThePaperIsWrittenToWeCanReadIt()
        {
            Pencil pencil = new Pencil(100, 8);
            Paper  paper  = new Paper();

            paper.AddContent(pencil.Write("I am being written to"));

            Assert.AreEqual("I am being written to", paper.content);
        }
Ejemplo n.º 3
0
 public void whenWeWriteAStringThatStringIsAppliedToPaperAccurately()
 {
     paper.AddContent(pencil.Write("Writing"));
     Assert.AreEqual("Writing", paper.content);
 }