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

            sut.FillP(6);

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

            sut.FillP(10);

            sut.empty(5);

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

            sut.FillP(6);

            sut.empty();

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

            sut.FillP(100);

            Assert.AreEqual(20, sut.Spilled);

            sut.empty();

            Assert.AreEqual(0, sut.Spilled);
        }
Пример #5
0
        public void CreateRainBarrelSWithCorrectSpilled()
        {
            var sut = new RainBarrelS();

            Assert.AreEqual(0, sut.Spilled);
        }
Пример #6
0
        public void CreateRainBarrelSWithCorrectContent()
        {
            var sut = new RainBarrelS();

            Assert.AreEqual(0, sut.Content);
        }
Пример #7
0
        public void CreateRainBarrelSWithCorrectCapacity()
        {
            var sut = new RainBarrelS();

            Assert.AreEqual(80, sut.Capacity);
        }
Пример #8
0
        public void CreateRainBarrelSWithCorrectBool()
        {
            var sut = new RainBarrelS();

            Assert.IsFalse(sut.IsOverFlowed);
        }
Пример #9
0
        public void CreateRainBarrelSOfCorrectType()
        {
            var sut = new RainBarrelS();

            Assert.IsInstanceOfType(sut, typeof(RainBarrelS));
        }
Пример #10
0
        public void CreateRainBarrelSCorrectly()
        {
            var sut = new RainBarrelS();

            Assert.IsNotNull(sut);
        }