public void RoundPanVolume2()
        {
            var        round  = new RoundPan(12, 4);
            IGetVolume getVol = (IGetVolume)round;
            var        actual = getVol.GetVolume();

            Assert.AreEqual(452, actual);
        }
        public void RoundPanVolume()
        {
            var        round  = new RoundPan(8, 2);
            IGetVolume getVol = (IGetVolume)round;
            var        actual = getVol.GetVolume();

            Assert.AreEqual(100, actual);
        }
        public void Aggregate()
        {
            var aggregate = new Aggregater();
            var cake      = new List <IGetVolume>();
            var round     = new RoundPan(6, 2);
            var square    = new SquarePan(9, 2);
            var round2    = new RoundPan(12, 2);
            var square2   = new SquarePan(15, 2);

            cake.Add(round);
            cake.Add(square);
            cake.Add(round2);
            cake.Add(square2);
            var actual = aggregate.GetAggregatedArea(cake);

            Assert.AreEqual(894, actual);
            //i know there's a much better way to add items to a list... this is getting rather extensive for a test.
            //need to have the GetAggregatedArea public, but then i get the inconsistency error.
        }