public void whenPencilIsSharpenedLengthIsReducedByOne() { pencil = new Pencil(5, 1, 0); pencil.Write("aaaaa"); pencil.Sharpen(); Assert.AreEqual(0, pencil.getLength()); }
public void whenPencilLengthIsZeroPencilCannotBeSharpened() { pencil = new Pencil(5, 0, 0); pencil.Write("aaaaa"); pencil.Sharpen(); Assert.AreEqual(" ", pencil.Write("aaaaa")); }
public void whenSharpenedDurabilityIsReset() { pencil.Write("fubdfniebibnasdA"); pencil.Sharpen(); Assert.AreEqual(100, pencil.getMaxDurability()); Assert.AreEqual(100, pencil.getPointDurability()); }