public void whenThereIsNotEnoughDurabilityABlankIsWritten() { pencil = new Pencil(5, 0, 0); Assert.AreEqual("abcd f ", pencil.Write("abcdEfgh")); }
public void whenPointDurabilityIsAtZeroEditingStops() { pencil = new Pencil(3, 0, 0); Assert.AreEqual("Edit Te Complete", pencil.Edit("Test", "Edit Complete")); }
public void testInit() { pencil = new Pencil(100, 100, 100); }
public void whenEraserDurabilityIsZeroErasingStops() { pencil = new Pencil(5, 1, 8); Assert.AreEqual("Reduce Du ", pencil.Erase(" Durability", "Reduce Durability")); }