Beispiel #1
0
        public void AreaCircle()
        {
            var radius = 10;
            var area   = 314.16;

            _calculation = new AreaCalculation(new Circle(radius));
            Assert.AreEqual(area, _calculation.Result());
        }
Beispiel #2
0
        public void AreaTriange()
        {
            var a      = 10;
            var b      = 10;
            var c      = 10;
            var result = 43.30;

            _calculation = new AreaCalculation(new Triangle(a, b, c));
            Assert.AreEqual(_calculation.Result(), result);
        }