Пример #1
0
        public void FillRainBarrelMCorrectly()
        {
            var sut = new RainBarrelM();

            sut.FillP(6);

            Assert.AreEqual(6, sut.Content);
        }
Пример #2
0
        public void EmptyByAmountRainBarrelMCorrectly()
        {
            var sut = new RainBarrelM();

            sut.FillP(10);

            sut.empty(5);

            Assert.AreEqual(5, sut.Content);
        }
Пример #3
0
        public void EmptyFullyRainBarrelMCorrectly()
        {
            var sut = new RainBarrelM();

            sut.FillP(6);

            sut.empty();

            Assert.AreEqual(0, sut.Content);
        }
Пример #4
0
        public void OverFlowRainBarrelMCorrectly()
        {
            var sut = new RainBarrelM();

            sut.FillP(140);

            Assert.AreEqual(20, sut.Spilled);

            sut.empty();

            Assert.AreEqual(0, sut.Spilled);
        }