public void EmptyByAmountRainBarrelMCorrectly() { var sut = new RainBarrelM(); sut.FillP(10); sut.empty(5); Assert.AreEqual(5, sut.Content); }
public void EmptyFullyRainBarrelMCorrectly() { var sut = new RainBarrelM(); sut.FillP(6); sut.empty(); Assert.AreEqual(0, sut.Content); }
public void OverFlowRainBarrelMCorrectly() { var sut = new RainBarrelM(); sut.FillP(140); Assert.AreEqual(20, sut.Spilled); sut.empty(); Assert.AreEqual(0, sut.Spilled); }