public void EmptyByAmountRainbarrelLCorrectly() { var sut = new RainBarrelL(); sut.FillP(10); sut.empty(5); Assert.AreEqual(5, sut.Content); }
public void EmptyFullyRainbarrelLCorrectly() { var sut = new RainBarrelL(); sut.FillP(6); sut.empty(); Assert.AreEqual(0, sut.Content); }
public void OverFlowRainbarrelLCorrectly() { var sut = new RainBarrelL(); sut.FillP(180); Assert.AreEqual(20, sut.Spilled); sut.empty(); Assert.AreEqual(0, sut.Spilled); }