public void PencilLengthUpdated() { WriterActions writer = new WriterActions(); writer.ProcessInput("Hello world"); writer.SharpenPencil(); Assert.AreEqual(19, writer.pencil.GetLength()); }
public void WriterSharpensPencil() { WriterActions writer = new WriterActions(); writer.ProcessInput("Hello world"); writer.SharpenPencil(); Assert.AreEqual(1000, writer.pencil.GetCurrentDurability()); }
public void SpacesWhenLengthIsZero() { WriterActions writer = new WriterActions(); writer.pencil.SetLength(1); writer.pencil.SetDurability(0); writer.SharpenPencil(); writer.ProcessInput("Hello world"); Assert.AreEqual(" ", string.Join(null, writer.paper.ToArray())); }