コード例 #1
0
        public void RectangularPanVolume2()
        {
            var        rect   = new RectangularPan(8, 11, 2);
            IGetVolume getVol = (IGetVolume)rect;
            var        actual = getVol.GetVolume();

            Assert.AreEqual(176, actual);
        }
コード例 #2
0
        public void RectangularPanVolume()
        {
            var        rect   = new RectangularPan(9, 13, 2);
            IGetVolume getVol = (IGetVolume)rect;
            var        actual = getVol.GetVolume();

            Assert.AreEqual(234, actual);
        }
コード例 #3
0
        public void SquarePanVolume2()
        {
            var        square = new SquarePan(6, 4);
            IGetVolume getVol = (IGetVolume)square;
            var        actual = getVol.GetVolume();

            Assert.AreEqual(144, actual);
        }
コード例 #4
0
        public void SqaurePanVolume()
        {
            var        square = new SquarePan(8, 2);
            IGetVolume getVol = (IGetVolume)square;
            var        actual = getVol.GetVolume();

            Assert.AreEqual(128, actual);
        }
コード例 #5
0
        public void RoundPanVolume2()
        {
            var        round  = new RoundPan(12, 4);
            IGetVolume getVol = (IGetVolume)round;
            var        actual = getVol.GetVolume();

            Assert.AreEqual(452, actual);
        }
コード例 #6
0
        public void RoundPanVolume()
        {
            var        round  = new RoundPan(8, 2);
            IGetVolume getVol = (IGetVolume)round;
            var        actual = getVol.GetVolume();

            Assert.AreEqual(100, actual);
        }