public void FillOilDrumCorrectly() { var sut = new OilDrum(); sut.FillP(6); Assert.AreEqual(6, sut.Content); }
public void EmptyByAmountOilDrumCorrectly() { var sut = new OilDrum(); sut.FillP(10); sut.empty(5); Assert.AreEqual(5, sut.Content); }
public void EmptyFullyOilDrumCorrectly() { var sut = new OilDrum(); sut.FillP(6); sut.empty(); Assert.AreEqual(0, sut.Content); }
public void OverFlowOilDrumCorrectly() { var sut = new OilDrum(); sut.FillP(179); Assert.AreEqual(20, sut.Spilled); sut.empty(); Assert.AreEqual(0, sut.Spilled); }